I am using an IFrame, and from this IFrame I want to redirect to another page.
Please tell me how to do this without any JavaScript, ie, no window.location.
Response.Redirect shows the page in the IFrame, but I want to show page as a main page.
There is a collection of "very special irregularities, inconstancies and just plain painfully unintuitive moments" concerning javascript on wtfjs. Do you know some other collections of such unintuitive moments for other languages?
This below output come from php json_encode.What we see here is 0849 is twice.Since javascript only use sn to get value why we need the "0" value.The main problem is speed execution. If 800 kb data might can be reduce to 400 kb
{"success":"true","total":968,"data":[{"0":"0849","sn":"0849" }]
If no solution i have to make a script to filter in json_encode so no need twice data transter.
Hi all,
I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the styles are not there and also if I search with javascript for them no styles are found).
I have tried using a jquery plugin tocssRule(), it works but it is just too slow. Is there another way of getting webkit to load the styles dynamically?
Thanks.
Patrick
Hi,
The following code works in all browsers apart from IE6...
var mylib =
{
selectStyle :
{
init : function()
{
$('#select-box1').jqTransform({imgPath:'jqtransformplugin/img/'});
}
}
}
<script type="text/javascript">
mylib.selectStyle.init();
</script>
The error states 'mylib' is undefined
Can someone please help otherwise I will have to spend alot of time redoing a lot more code than this.
Many thanks,
C
I recently added CKEditor to my app, I'm new to CKEditor and I would like to include my own css style sheets within the editor so that I can select them within the editor.
Ho do I accomplish this my code sofar looks like this
<script type="text/javascript">
CKEDITOR.replace( 'editor1',{
uiColor : '#9AB8F3',
});
</script>
Hi, i need to comunicate with a smartcard from an ASP.NET site. I've create a dll(using Winscard.dll and MCSCM.dll that is the SCM Micro Reader's dll) that work with the cardreader on windows but i'm not able to use it with ASP.NET. The project will run only on IE and i must avoid Javascript.
Thank you for the help.
Hi,
I'm new to the web development world - that means I'm new to javaScript/CSS. Now I'm building a web system with Python Django. I'm wondering would you like to give me some hints as the starting point for adding "tabbed" interface to Django admin?
For example, there are 3 detail table for a master table, and I want to use 3 different tabs for editing that 3 detail tables in the 'edit' page for the master table. Thank you in advance!
I am getting some problems while trying to use this regex:
(public +function|private +function|function) +
For some reason, $1 and $2 are returning the same value.
How can I fix that? By the way, I am using Javascript
I'm trying to deal with: "Requests made from Javascript running on your web pages must be proxied to avoid same-origin policy conflicts."
I know how to work with the JSON once I've got it. But aside from copy-pasting the JSON results via my browser, I don't know how to localize it for use.
I've got a user control thats used twice on the same page, each have the ability to be updated (a dropdown list gets a new item) and I'm not sure what might be the best way to handle this.
One concern - this is an older system (~4+ years, datasets, .net2) and it is amazingly brittle. I did manage to have it run on 3.5 with no problems, but I've had a few run-ins with the javascript validation (~300 lines per page) throwing up all over the place when I change/add/modify controls in the parent.
I have a website where I want to allow the users to invite their friends, by getting their contacts in hotmail/msn.
Google has the google contacts API for these purposes, does MSN publish a similar javascript API?
Please note that I do not want to ask the user for their username/password like http://openinviter.com/ .
Also, if anyone can provide some tutorials / examples I would appreciate it, as Microsoft docs are usually hard to understand :)
For the Javascript helper I need to create my links like this:
Resources::url('Product::addToOrder', $id)
But how do I add multiple parameters? I tried to do it in an array, but that did not work.
Here's the js event:
$this->Js->event(
'click',
$this->Js->request(Resources::url('Product::addToOrder', $id),
array('async' => true, 'update' => '#order')
)
);
I'm a little out of date, before HTML4 and javascript got AJAXy. Does anyone have opinions about the best tools for web site design? I'd rather avoid ASP and .NET, since I've got a limited budget. This seems like a good time to start fresh.
Please keep the replies on the coding recommendations, as I already know how to register a domain name, redirect it, set up Apache. (I could use some opinions on the various Apache flavors)
I am trying to create something on a webpage that allows my users to create a desktop shortcut. Because my users are NOT technically savvy, I would like to avoid having them try to drag and drop. Is there a way that I could create a button on a webpage (either using JavaScript or .Net) that automatically creates a desktop shortcut for the user?
If you have follow up questions, please let me know. Thanks
Hello guys, I'm trying to put some style in the input=file aka uploader and I'm having a hard time with it, is there some NON FLASH solution (maybe jquery or even plain javascript)?
I often need to verify some simple code before posting, and it's great if I have installed IDE, but what if not? It would be nice to have online free tools for SQL, VB.NET, C# code validation, or maybe even testing.
EDIT
What I actually mean are online live web tools, like JSLint for javascript.
Have you seen any?
Thanks!
Hello,
I have a webform with a button and a textbox.
I want to set the textbox, in design time to Visible = false, and then in the onclick event of the button
in the client side using javascript, I want to set the visibility of the button back to true.
The problem is that I get a message saying that the object does not exist.
Any idea how to solve this?
TY
How do I configure Ruby on Rails to output standard HTML code instead of XHTML when using helpers (form, javascript, css, etc.)?
I don't want to have the slash at the end:
<input name="email" type="text" />
My programming experience is limited to xhtml, css, php, sql and some javascript. The books I have are:
Programming in Objective-C 2nd Edition
Beginning iPhone Development
Cocoa(R) Programming for Mac(R) OS X (Paperback)
Is there anything else I will need to get started on my journey into iPhone/OS X development?
I have successfully created new rules for the prototype validation, now I need to translate the error messages (Location: String in Javascript). However, I can only translate all the messages, my new custom ones don't appear to be translatable. How do I change this?
Is there a way to rewite (or hijack) an absolute URL request made from a flash (swf) file in a browser?
Eg
I have a flash application that is requesting http://example.com/myImage.png
The code in the flash application cannot be changed but I want to be able to either use another flash or some javascript to write that URL as the image is beging requested - to something like
example.com/myImage.png?u=123456