15,120 Topics
| |
i have a string like this: [CODE]location = '#http://www.website.com';[/CODE] how can i take off that hash sine? regards | |
Hi, I have 2 frames. In left panel i have a hyper link. Whenever i click on hyper link (on the left panel) of the page should open in right panel of the frame. Here is the frame code. [code] <html> <FRAMESET cols="200,*"> <frame name="left" src="page.html"> <frame name="right" src="#"> </FRAMESET> … | |
Hi, I need to parse an HTML string received from an AJAX request. I wrote a function that places the HTML string into an unappended (not added) [ICODE]<div>[/ICODE], which opens the string up to the DOM hierarchy. However, when I try to access the elements of this [ICODE]<div>[/ICODE], I get … | |
I have javascript working on IE but not on FF, are there things I should look for inparticular? Inparticular that is not working is the "onclick function" I call. Thanks, Regards X | |
Can anyone please help that [B]How to scroll div in middle of window when window is scroll?[/B] | |
I'm having a problem with adding onClick events to [ICODE]<a>[/ICODE] tags. The attribute is never added at all, but no errors are shown in the JavaScript console. I'm using Firefox 3.0.10. Here's my code: [CODE=HTML] <html> <head> <script type="text/javascript"> function setAJAXAttributes() { var domain = new RegExp("(" + window.location.host + … | |
I'm trying to write a demo page for my site that works completely on AJAX. What I mean by this is that the page will stay the same, but load new pages by changing the <BODY> of the document. I'm writing a script that will take every link and decide … | |
Hi anybody know how to create this effect on mootools? [B][url]http://www.flashjuggler.com/files/image-vertical-menu/1029?ref=oxylus[/url][/B] thanks | |
Hi there all, I want to grab information from an url with anchors and I suppose this can't be done with php, as ive been told and that it would have to be done with javascript. I am wondering if anyone knows the code to grab the url and anchor … | |
Hi there, I am using a javascript code to refresh a page. <code> window.location.href=""; </code> this code refereshes the whole page and focus goes at the top of the page but I want the focus of the page at the same place where I perform refresh. Actually I am using … | |
How to create a Rotating Image Frame with Navigation Menu like this:[URL="http://s3.amazonaws.com/satisfaction...Nav_inline.jpg"]http://s3.amazonaws.com/satisfaction...Nav_inline.jpg[/URL] like from the site: marthastewart.com what is the code for creating image rotation like this?????plzzzzzzz | |
I need to include a "variable" in my regex that will be different each time it is called. Very fustrated, this would have taken 2 seconds in Perl. Here is my code: [code=javascript] for (y=0; y < response.length -1; y++){ var _row = response[y].split(':'); var str = "_row[1]"; if(str.match("/^"+_inputText.value+"/i")){ _responseText … | |
Hi there, I have a div tag and working fine till yesterday. Just now I found out a problem which has to be rectified quickly. I have a div tag. When time out is approaching then we need to pop up the message using div tag. Everything is working fine. … | |
Hello I've a question when creating a class with functions. e.g. [CODE=javascript] function constructor() { this.myFunc = function() { return "Hello World"; } } [/CODE] do I have to write the function in that way? this.funcName = function() for every function in that class? Because when I tried to write … | |
Hello. I'm trying to get working some AJAX make statistics of links clicked. Using php and mysql as back-end. My choice is synchronous AJAX request to server using onbeforeunload event. I'm using synchronous request to be sure that browser sent request to the server before page is unloaded. With asynchronous … | |
If, in Firefox, you go to [URL="http://www.incrowd.org.uk"]http://www.incrowd.org.uk[/URL] you'll see a signin page. The signin form is a table and should be spaced 35%/65%. However it is just taking up the space needed for the left label. I've got Firebug and the problem is the table is not taking up 100% … | |
hi, im posting this because i cant find my problem, the thing is that my script works fine on Opera, Firefox, Chrome and Safari but it doesnt work on IE, i have the newest version of IE and have been trying everything please help the page is here (code that … | |
if i click button in pqge 1 page 2 should refresh if i click page 2 button page 3 shoould refresh if i click page 3 button page 1 shoud refresh ... can any one tell me the javascript code for this plz | |
Hello Daniweb, I am a newbie student. I have a problem where I designed my web page project and eventually it must contain a background song that will continuously play even clicking the links/pages. Is there any possibities of doing this? Thanks for the help. I will greatly appreciate your … | |
Hi! After many years of not doing any web design at all, I have a neighbor that has hired me to design a basic website for her business. I've set the page up with an iframe because I figured then I would only have to update menu links on that … | |
hi, how to use the window onload event on javascript.. for example i got a function and i want that function to execute during page load. any ideas is greatly appreciated... thanks... | |
I have an iframe which is by default hidden. It becomes visible on a double click event and should be in editable mode. I set iframeObject.contentDocument.designMode='on' on body load event. But when i fire a double click event, iframe becomes visible but not in editable mode. How to achieve this … | |
i need to write a function to remove consecutive slashses from a string i wrote this [code] for( i=0; i!=b; ) { var slashone = strname.indexOf('/',i+1) i=slashone var slashtwo = strname.indexOf('/',i+1) i=slashtwo //alert("index of slash one" + slashone) //alert("index of slash two" + slashtwo) if( slashone == (slashtwo-1)) { alert("Remove … | |
Hi, I need an effect like in this linkhttp://markgrantcables.co.uk/shop/ I simply put a "?" mark next to a textarea. When mouse is over "?" then a little explanation box will appear. Thanks | |
plz tell me that how to open this ads function using a button in new window. Code: [code=JavaScript]function ads() { <script type="text/javascript"><!-- google_ad_client = "pub-6044026340890176"; /* 468x60, created 3/17/08 */ google_ad_slot = "3105157606"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="(URL address blocked: See forum rules)"> </script> … | |
Hi, Can anyone suggest me the best browser (IE or Firefox) for working of JavaScript. If IE, vat version..?? And why..??? Im using Mozilla Firefox, But people are telling me that IE is best... Please suggest me. | |
Hi, I have a dropdown list in the headerrow of a gridview. When submiting data to the database, how can i check the value is selected or not from the dropdown list using javascript. Thanks in advance. | |
The position and visibility of the image element is dynamically updated. The following code displays the correct dimensions in Firefox 3.0.10 and Chrome 1.0.154.65, but displays "0,0" in IE8. [code] var _img = document.getElementById("imageElementId"); alert(_img.width + ", " + _img.height); [/code] Any ideas on how to get it to work … | |
I've worked up a site for a friend who wanted a horizontal scrolling site -I've managed to do it ([url]www.testdrive-site.co.uk/site2[/url]) for Firefox etc. but the links didn't slide the page across to the relevant 'page' in iE. I checked the site and now it validates but doesn't even load in … | |
I m using a script for randomly calling a text on my page using [code]Math.floor(Math.random()*(quotes.length))[/code] this code running perfectly when i click on my page or refresh it... is that possible to autorate the quotes after sometime u can see the live example [url]playbackgroup.com[/url] right panel in top box where … |
The End.