How can I replace the number inside the brackets for any strings not matching the word "Field". So the number inside 'SomethingElse' and 'SomethingMore' could be replaced to a new value, but any bracketed value to the right side of the term 'Field' would not be touched. Note, the word "Field" will always stay the same, so it can be ref...
i am using IE6 as a browser and when i call upon a local HTML file as an overlay by using Load function it loads the page but, following things happens
1: shows a loading status bar all the time
2: All the javascript in the called page(overlay) stopped working.
this is the call code
$("#mainoverlay").load("card1.html");
...
Using Javascript how can I identify the element at a given position? Basically I'm looking to write a function that takes two input parameters (the x and y coordinates) and returns the html element at the position on the screen represented by the parameters.
...
Introduction: I want to develop the chat client that user can chat on the browser and I use the protocol call xmpp. Because of HTML5 web socket not yet available I try flash xmlsocket instead.
Problem: I cannot connect to the server via browser. I'm not sure why, but I think that it is the problem of the server configuration.
Question:...
I have a dropdown menu inside a DIV.
I want the dropdown to be hide when user click anywhere else.
$('div').blur(function() { $(this).hide(); }
is not working.
I know .blur works only with <a> but in this case what is the simplest solution?
...
I want to show a PREVIEW kind of thing for an post , so took details by JS
but problem comes when it comes to <input type="file" , it's not giving full path to the file
Ex:
if I do
$("#image").val();
it only give "Sunset.jpg" not C:\Documents and Settings\All Users....\Sunset.jpg
any idea how to get that detail value?
...
I know that jQuery and similar Javascript frameworks offer resize functionality, but I want to understand how it's implemented (if only to learn more about Javascript).
I can think of a few ways it could be done, but how is it implemented in practice? The mouseover event applies to entire elements, so how does one allow resizing only wh...
I have a textbox that I want to the user to write something in it.
I want that the default language there would be english. so if he pressed alt-shift before he came to my page and he is now on other language - when he'll come to my textbox it would change his language to english.
Is it possible with javascript? how?
...
when i try to run the google maps on an asp .net page i get a javascript error saying that it doesnt like the key im using but i have the key from google
can anyone help please?
thanks
Kevin
edit this is the key that google provided ABQIAAAAcPBSoXRloZCu5tYnhpZBCBRrxSVjvAJ3kkmtcIQSxWeYirsDfxTECPvByIoh90G8hcPG55N3s_3E2g
<cg1:GMap ID="...
Hi,
$.ajax({
type: "POST",
url: "http://localhost/FormBuilder/index.php/forms/saveForm/"+user_id,
datatype: 'json',
data: "formname="+formname+"&status="+status,
success: function(json){
alert( "id is : " + json.forms[0].id);
}//success
});//ajax
The above code doesn't alerts me the id. why so....
My ...
I am trying to show occurences when browsing .js files in Eclipse (just simple occurences like it does for C).
For example, if I highlight myVar, then Eclipse should show boxes in a ruler where other occurences of myVar occur in the file.
I've gone into Preferences->General->Editors->Text Editors->Annotations multiple times, de/selecte...
Possible Duplicate:
C# eval equivalent?
Duplicate of http://stackoverflow.com/questions/4629/c-eval-equivalent
How can we Implement JS eval() in C#
If possible provide an example..
thank you
...
I just saw a video of Nicholas Zakas of Yahoo, at GoogleTalks talking about speeding up your website. One of the things he mentioned was doing loops in reverse order to skip one of two comparisons: for (i = len; i--;) {}
And he said to keep away from JS libraries implementations of for each. Just for fun I thought I'd try it out. Turns ...
One SEO advice we got was to move all javascript to external files, so the code could be removed from the text. For fixed scripts this is not a problem, but some scripts need to be generated as they depend on some ClientId that is generated by asp.net.
Can I use the ScriptManager (from asp.net Ajax or from Telerik) to send this script to...
Hi,
I am looking for a way to Show/ Hide some of the Radio buttons of a Radio button group using JavaScript.
How can this be achieved?
Thanks
...
Hi MY asp.net APPLIATION dashboard, i need to provide help icon on the screen. For that i have few option as follows
I can use AJAX modal popup and register usercontrol having help content and show it on modal popup control on click of help button
I can use javascript buble tooltip for help on mouse over/enter of help icon.
Can you s...
I have a VB.net class registered for COM interop which I'm instantiating within an HTML page using the following code:
<script type="text/javascript">
var MyClass = new ActiveXObject("Namespace.TestClass");
</script>
I can call methods on it just fine, but suppose I want to set a javascript function as a property, like so:
MyClass.Te...
What develepment environment do you use when you need to work on javascript?What options have as an Asp.net developer for working with javascript or jQeury in order to have possibilities to test,develop in realtime?
I tried to set up the intellisense to make it work the jquery documentation,but that's not working.
Right now i'm using Fir...
I'm writing a program (in Java) that needs to extract links from webpages. I'm using htmlParser (http://htmlparser.sourceforge.net/) but I'm only able to extract html links (defined with <a href="...">) and I don't know how to handle javascript code to extract links from... can you help me??
...
Please have a look at this code -
When I click on myLink I get a modal dialog window which shows the html as defined below. This html includes a button (id=test_button), and when I click on this button I want to do an ajax request.
But its not working. So to test it I am just doing an alert but it wont work as well.
Also will it be p...