Hello,
I have added html controls through javascript, but when the page postback, all of the added controls are lost. Is there a way to retrieve it?
Thanks,
JV
How expensive are local variables (var v), global variables (window.v) and cross-global variables (parent.v) in JavaScript, in the major browsers? Has anyone performed any good tests on this one?
Hi,
I want to know how can I validate using Javascript that if user has entered any username at the time of creating an account is already present in database and ask user to type any other username?
We have javascript files that are environment specific, and so I was thinking of going down the path of creating a generic way to read in an XML (config) file to store different environment specific settings. I was curious to know if anybody else on here does that (or if not, is there a reason why you don't)?
Hi,
Is there anyway in JavaScript which emulate user clicks an anchor?
Mozilla(Firefox ) does not implement that.
https://developer.mozilla.org/en/DOM/element.click
But is there any browser which does?
To reduce http request i want to mix multiple jquery plugin's javascript filesa and main jquery file into one.
What things should be considered?
Do we just need to place code from all files into new file one bye one or need to do something more. ?
i m suffering with Passing values from javascript function to controller in cakephp and get using $_POST.
i have tried it by different ways but didn't get success please suggest........
I am not very familiar with the Javascript syntax bellow. Can anyone shade light about the sense of this block? For what purpose?
(function foo() {
alert('bar');
})();
Thanks in advance.
I'm looking at the google maps api tutorial
and i see this
<script type="text/javascript" src="http://www.google.com/jsapi?autoload={'modules':[{name:'maps', version:3,other_params:'sensor=false'}]}"></script>
Why is modules in single quotes?
I want to run a javascript snippet inside the <head> tag. Is that possible to do that in Selenium RC+Java?
I understood that if I use getEval or runScript that will insert the code inside the HTML body.
Any Ideas?
Thanks
I'm working on a web based form builder that uses a mix of Jquery and PHP server side interaction. While the user is building the form I'm trying to determine the best method to store each of one of the form items before all the data is sent to the server. I've looked at the following methods
Javascript arrays
XML document
Send each form item to the server side to be stored in a session
I'm looking for a light-weight UI toolkit written in Javascript (something like Swing) but I'd rather not use ExtJS because I fear that will slow things down tremendously. Are there any small UI toolkits out there that mainly focus on layouts?
I am using setInterval(fname, 10000); to call a function every 10 secs in javascript. Is it possible to stop calling the calling on some event?
I want the user to be able to stop the repeated refresh of data.
Not sure this is possible, but Looking to write a script that would return the average hex or rgb value for an image. I know it can be done in AS but looking to do it in JavaScript.
I have an activex plugin here:
http://reboltutorial.com/plugins/logo-badge/
I tried by adapting the script http://forums.devarticles.com/javascript-development-22/detecting-activex-objects-installed-in-ie-11041.html to
<script>
//if RPluginIE is not installed
if( !document.RPluginIE){
document.loction.href = "Notfound.html"
}
</script>
but it doesn't work.
How to detect for any activex ?
I have a Login Page Contains two text boxes
one is user name,password and one button
if the two textboxes are empty that time how i can avoid post back of the buuton
if any value enterd that time only postback occuers,,,, not using required fiekd validator
any method is avilable in javascript.......
Hello Everyone,
I have anchor tag
<a id="click" href="javascript:void(0);" onclick="disable();" style="">Clickme</a>.
When html loads it showing clickme,when i click anchor link,it calls disable() function,In disable function i am trying to hide it using below code:
document.getElementById("click").style.display='none';
But page never hides that anchor link,Please let me know if i am doing anything wrong.
Thanks in advance.
Hey Guys, I was wondering if there is a "maximum" of data a javascript application can store. I guess this is handled by the browser and that each one has it's limitation? Am I guessing right? Wrong? If there isn't a limit, will a page file be created (wouldn't be very secure I guess).
Is there any API or a jQuery plugin that allow me to highlight a code on my website?
For example
<pre code="c#">
var x = new StringBuilder();
var complex = new Complex();
</pre>
<script type="text/javascript">
$("pre[code]").codehighlight({ language: "c#" });
</script>
Something like that?
I have a url which looks like this
https://test.high.com/people/11111111-name-firstname-_custa/deals/new
Now i need to match document.URL
if im on that Page if so i will alert a message.
The important part is /deals/new
How can i match that in Javascript?
Am unable to add elements to a dropdown list via Javascript.
The below piece of code works in IE and Chrome, but not in firefox.
ddlId.add(new Option("",0));
In firefox, I keep getting an 'Not enough arguments' exception. Any idea on how to resolve it? Thanks