Click here to Skip to main content

JavaScript

 
AnswerRe: onmouseover and document.getElementById Pinmemberjainsachin30-Nov-12 10:17 
Questiondisplaying different contentunder single layout Pinmemberradha123 from Hyderabad23-Nov-12 4:32 
AnswerRe: displaying different contentunder single layout Pinmembermanojwadnere28-Dec-12 1:07 
QuestionRegular expression PinmemberMember 962181822-Nov-12 3:25 
AnswerRe: Regular expression [modified] Pinmembern.podbielski22-Nov-12 21:00 
GeneralRe: Regular expression PinmvpManfred R. Bihy22-Nov-12 22:20 
GeneralRe: Regular expression Pinmembern.podbielski23-Nov-12 22:15 
Questionform validation Pinmembertherainking7821-Nov-12 23:07 
AnswerRe: form validation PinmvpRichard MacCutchan21-Nov-12 23:17 
GeneralRe: form validation Pinmembertherainking7828-Nov-12 14:14 
AnswerRe: form validation PinmemberbVagadishnu28-Nov-12 12:14 
GeneralRe: form validation Pinmembertherainking7828-Nov-12 14:17 
Questionopeing a new window in JS after time interval PinmemberWaqasCheema21-Nov-12 0:36 
AnswerRe: opeing a new window in JS after time interval PinmemberAndrew Stoute30-Nov-12 5:51 
Look into the .ajax method from JQuery, it will let you make an asychrnous call to get the next URL from the Db.
 
I don't know much about what technology you're using, but you could do something like this:
 
$(document).ready(function() {
    $(#surf).click(function() {
       // setInterval will run the function once a second with this code
       setInterval(GetNextUrlAndDisplayIt, 1000);
 
    });
});
 
function GetNextUrlAndDisplayIt() {
 $.ajax(
        {
           url: 'UrlForGettingNextURL.aspx',
           cache: false,
           success: function(data) {
               window.open(data, "myWindow")
           }
}
 
Calling window.open and using the same name will mean it will open the next URL in the same window.
 
I'm making a few assumptions here, like that your "surf" button has the id "surf" and that your call to get the next URL returns just the URL and there's no parsing needed.
 
All in all that code should get you started.
 
EDIT: Obviously you will need to have some kind of way to know which URL you retreived last as well.
QuestionDraw circuit diagram using javascript Pinmemberanishkannan18-Nov-12 23:31 
AnswerRe: Draw circuit diagram using javascript Pinmembern.podbielski19-Nov-12 22:07 
Answerto transfer items in select list to another select list without duplicates Pinmemberraviteja999200014-Nov-12 21:09 
QuestionHow does Yandex do its trick? PinmemberXarzu14-Nov-12 20:42 
AnswerRe: How does Yandex do its trick? [modified] PinmvpManfred R. Bihy14-Nov-12 21:44 
Questiondisplay record from two different time Pinmemberuti123fil8-Nov-12 18:15 
AnswerRe: display record from two different time PinmvpRichard MacCutchan9-Nov-12 0:47 
QuestionAdding a month to the current date PinmemberSadiqMohammed7-Nov-12 0:48 
AnswerRe: Adding a month to the current date PinmemberRichard Deeming7-Nov-12 3:00 
GeneralRe: Adding a month to the current date PinmemberSadiqMohammed7-Nov-12 19:31 
GeneralRe: Adding a month to the current date PinmemberRichard Deeming8-Nov-12 3:11 
GeneralRe: Adding a month to the current date PinmemberSadiqMohammed8-Nov-12 20:08 
AnswerRe: Adding a month to the current date Pinmemberdeepak.m.shrma19-Nov-12 19:07 
GeneralRe: Adding a month to the current date PinmemberPeter_in_278019-Nov-12 19:58 
GeneralRe: Adding a month to the current date Pinmemberdeepak.m.shrma19-Nov-12 20:52 
QuestionNeed to pass object value from javascript to php Pinmembergern844-Nov-12 11:08 
SuggestionRe: Need to pass object value from javascript to php Pinmembern.podbielski4-Nov-12 13:56 
GeneralRe: Need to pass object value from javascript to php Pinmembergern844-Nov-12 14:29 
GeneralRe: Need to pass object value from javascript to php Pinmembern.podbielski4-Nov-12 21:48 
GeneralRe: Need to pass object value from javascript to php Pinmemberzengnanhua22-Nov-12 19:27 
GeneralRe: Need to pass object value from javascript to php PinmemberKillzone DeathMan23-Nov-12 0:39 
QuestionWindow restore Pinmembermkotaska1-Nov-12 7:00 
AnswerRe: Window restore Pinmemberryanb312-Nov-12 12:03 
Questionunzip the .gzip files [modified] PinmemberKIDYA31-Oct-12 20:44 
AnswerRe: unzip the .gzip files PinmemberJay Zhu2-Nov-12 18:20 
Questioni have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. PinmemberAbhishek Prakash30-Oct-12 6:53 
AnswerRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. [modified] Pinmembern.podbielski30-Oct-12 22:48 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. PinmemberAbhishek Prakash31-Oct-12 0:40 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. PinmemberAbhishek Prakash31-Oct-12 0:48 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pinmembern.podbielski31-Oct-12 2:50 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. PinmemberAbhishek Prakash31-Oct-12 3:44 
GeneralRe: i have created 3 widgets using jquery ui - header, footer, textarea. i am observing abnormal behavior because of the footer widget. Pinmembern.podbielski31-Oct-12 7:11 
QuestionWorking example for Javascript to call a java webservice Pinmembersekhar48430-Oct-12 0:50 
AnswerRe: Working example for Javascript to call a java webservice PinmvpRichard MacCutchan30-Oct-12 1:54 
AnswerRe: Working example for Javascript to call a java webservice Pinmemberryanb312-Nov-12 12:04 
GeneralRe: Working example for Javascript to call a java webservice PinmemberMember 946160725-Nov-12 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 29 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid