Jump to content

Recommended Posts

Hi,

I have an html page with 2 datapages in it. Both are in their own divs. I'm trying to get the second div, called 'callback', to refresh every 6 seconds. I don't want to refresh the first div.

I've got this javascript to do it

function autoRefresh_div()
{
$("#callback").load("https://c1eru548.caspio.com/dp.asp?AppKey=f6344000919808bbf8fb4bb59cec&Email=[@authfield:Email]&Current_Password=[@authfield:Current_Password]");
}

setInterval('autoRefresh_div()', 6000);

The URL in the function autoRefresh_div is the deployment URL from Caspio for the datapage I want refreshing.

Users login into the app and the first page they get is this html page. After 6 seconds the second div refreshes fine, but the system is putting up the standard User Name and Password fields again in the second div, so the user has to login again. The first div isn't doing anything which is the desired action. As you can see I've tried to add these parameters to the URL so it autologs in. Unforutnately it isn't working.

 

If anyone has any ideas that woud be great.

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...