The script below work perfectly in IE for the XML respond. But seems i cant figured out how to run on Firefox or Chorme. Try few modification but still not able to run it. Kindly need assistant.
<script type="text/javascript" language="javascript">
var xmlhttp;
var timeStamp;
var currentTime = new Date()
var month = currentTime.getMo...
I am looking to add comet long polling functionality to my site by using ajax and jquery as I am not familiar with the javascript prototype framework. However, when I search for this, I always seem to end up with tutorial which use the prototype framework. Does anyone know of any comprehensive tutorial for comet long polling based on j...
How do you get Client location using Google Maps API v3? I tried the following code but kept getting the "google.loader.ClientLocation is null or not an object" error. Any ideas why ??
if (google.loader.ClientLocation) {
alert(google.loader.ClientLocation.latitude+" "+google.loader.ClientLocation.longitude);
}
Than...
I have a page which have lots of addresses. I want to have 'locate' link beside all the addresses which will take us to another page and show the location on google map. Since i am a total noob when it comes to google maps, can anyone help me how to do this? I definitely dont want to create separate pages for each address location. Any s...
I think in this case I need to write a client side script that onpageload/onchange gets options from server & builds a list dynamically. & stores new options to server via some JavaScript script. I will prefer to save user input in a file on server. I will be very thankful for any help.
...
I have the following code for a menu system which includes a lot of parts which are common in every menu item.
I'm struggling to put the common code into functions which I can then call as needed - so I don't need to have hundreds of lines of identical code.
Can anyone help point me in the right direction?
$("#test1").hover( function(...
I am creating an interface which allows the user to select different time ranges from a time line indicating hours from 0 to 24. Therefore i have created a ajax MultiHandleExtender and assign different properties to it as shown below:
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="toolkitScriptManager" runat="s...
I'm adding some functionality to an existing 'popup' in an ASP.NET website. The popup is called by window.showmodaldialog because the website only needs IE support and well, ... it was just programmed that way many years ago.
Now when I try to stream an image ( show a save file dialog ), this code does not work. It does work on normal p...
Hi,
I have a couple of span elements inside a HTML hyperlink like this.
<a href="Default.aspx"><span id="span1" onclick="adddata();">Span1<asp:Literal ID="Lblcount" runat="server"></asp:Literal></span><span id="span2" class="removetab ui-icon ui-icon-circle-close" style="float:right; margin: -2px -10px 0px 3px; cursor:pointer;" onclick...
Hey guys. I'm trying to parse xml file in order to extract some data from it and display it on the website. However, when I'm using url which doesn't end with .xml extension I can't run a foreach loop on the result. In other words when I'm using this kind of url:
$url = http://www.example.com/some_xml_file.xml
I can run a a foreach lo...
Hello guys,
I have created a very basic google map using the javascript API and google's tutorials. I would love to be able to create hyperlinks on my page that would recenter the map at certain cities around the world - eg London, Paris, Rome..
I can't for the life of me figure out how to do this (I'm quite new to all of this, trying...
Hello.
I'm trying to manually set throbber on TinyMCE editor using jQuery plugin. Tried like that:
$('textarea.tinymce').tinymce().setProgressState(1);
but no luck - Firebug says only:
1
and nothing happens. setContents() works just fine. How to show/hide the throbber?
...
Hello Everyone,
I want to write a web service client in javascript to invoke web service method on my jsp page.
Please help me ASAP.
Thanks
...
Hello all,
I hope you can help solving my problems. Any help is much appreciated. Thank you in advance.
HTML&CSS:
I tried creating a 'linklist' with HTML and CSS which you can find in this fiddle.
Unfortunately and logically the 'linklist' displays by hovering over the link 'Linklist', by leaving the link there won't be any display.
...
Ever since JQuery came along a few years ago I've been using it in all my client-side scripts. Initially I used the '$() syntax to grab and manipulate objects this, to me, is the 'old skool' paradigm of explicitly wiring up button events to functions:
<button onClick='myFunction(this);' ... />
with a related function:
function myFun...
In javascript, is there a way yo as a element for the events that i can use to add listener.
Something like:
element = document.getElementById(id);
console.log(element.listEvents);
Im using a DOM example, but this would be usefull in node.js also.
...
Hi,
I have a js function , after doing some business logic, the javascript function should return some result to another variable.Sample code below
var response="";
function doSomething() {
$.ajax({
url:'action.php',
type: "POST",
data: dataString,
success: function (txtBack) {
...
Is it possibe to launch grails based java web project from within Eclipse or Netbeans IDE and setup breakpoints in both java and javascript sources and be able to debug both?
If so then how?
I understand debugging javascript is normally done using browser based debugger such as firebug for firefox but there are situations for large pro...
Hi all..
i have some problem in javascript validation...
My requirement is user sholud enter value in text box less than 5
he sholud not allow to enter value which is more than 5
he can enter 4.25
3.10
he should not enter 5.1 how to restrict user not to do this..
what is code for this.on which event we sholud call it
...
I'm just opened FireBug and saw this on my site
<div style="display: none; width: 0px; height: 0px; overflow: hidden;">
<iframe src="javascript:void(0)" style="display: none;"></iframe>
<iframe src="javascript:void(0)" style="display: none;"></iframe>
<iframe src="javascript:void(0)" style="display: none;"></iframe>
<ifr...