473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

PHP File not loading via AJAX

nathj
938 Expert 512MB
Hi,

I am currently working on a new site that offers various files for download. The file information is stored in a MySQL database and the page is produced in PHP depending on how the user got to the page:

[php]
<?php
session_start();
$_SESSION['pageStyle'] = $_SESSION['pageStyle']; // set to whatever is, as you can only access this page from within a top level section
?>
<!--
File: download.php
Author: Nathan Davies
Created: 09/08/2007
Purpose: The downloads from the CLF site - for each topic type
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<?php
include("include/pageHeader.php");

if($loUser->hasAccess(1) ||$loUser->hasAccess(2) || $loUser->hasAccess(3))
{
// establish where this page was called from
if(isset($_GET['topicID']) && isset($_GET['topicType'])) // use isset as 0 is valid for this page
{
$lnTopicID = $_GET['topicID'] ;
$lnTopicType = $_GET['topicType'] ;

switch($lnTopicType)
{
case 0: // ad hoc entries that appear under general resources
$lnSubSection = 4 ;
$lcDownloadSelect =
"SELECT
a.ID, a.name, a.url, a.typeID,
b.description
FROM download a
LEFT OUTER JOIN downloadtype b on b.ID = a.typeID
WHERE a.topicType = $lnTopicType
ORDER BY a.typeID ASC" ; // this set is only ever the full set
break ;
case 1: // event downloads
$lnSubSection = 2 ;
$lcDownloadSelect =
"SELECT
a.ID, a.name, a.url, a.typeID, a.topicID,
b.title,
c.description
FROM download a
LEFT OUTER JOIN event b on b.ID = a.topicID
LEFT OUTER JOIN downloadtype c on c.ID = a.typeID
WHERE a.topicType = $lnTopicType" ;

// if only one specific event then add that condition to the SQL statement
if($lnTopicID > 0)
{
$lcDownloadSelect .= " AND a.topicID = $lnTopicID" ;
}
$lcDownloadSelect .= " ORDER BY a.topicID ASC" ;
break ;
case 2: // module downloads
$lnSubSection = 3 ;
$lcDownloadSelect =
"SELECT
a.ID, a.name, a.url, a.typeID, a.topicID,
b.title,
c.description
FROM download a
LEFT OUTER JOIN module b on b.ID = a.topicID
LEFT OUTER JOIN downloadtype c on c.ID = a.typeID
WHERE a.topicType = $lnTopicType" ;

// if only one specific module then add that condition to the SQL statement
if($lnTopicID > 0)
{
$lcDownloadSelect .= " AND a.topicID = $lnTopicID" ;
}
$lcDownloadSelect .= " ORDER BY a.topicID ASC" ;
break ;
}

include("include/subSectionTitleAndNavigation.php") ;

// execute the query

$laDownload = $loDB->queryGetData($lcDownloadSelect) ;

if($laDownload)
{
// there is information to display
switch($lnTopicType)
{
case 0: // general
echo '<h1 class="pageTitle">General Downloads</h1><br />' ;
echo $lcGeneralText ;
echo '<p>' ;
echo 'The items available here are listed by file type - e.g. PDF, MP3 etc' ;
echo '</p>' ;
break ;
case 1: // event
echo '<h1 class="pageTitle">Event Downloads</h1><br />' ;
echo $lcGeneralText ;
echo '<p>' ;
echo 'The items available here are listed by event title' ;
echo '</p>' ;
break ;
case 2: // module
echo '<h1 class="pageTitle">Training Downloads</h1><br />' ;
echo $lcGeneralText ;
echo '<p>' ;
echo 'The items available here are listed by module title.';
echo '</p>' ;
break ;
}

$lnCurrentCategoryID = -1 ;
foreach($laDownload as $laDownloadItem)
{
switch($lnTopicType)
{
case 0: // general
$lnNextCategoryID = $laDownloadItem['typeID'] ;
if($lnNextCategoryID != $lnCurrentCategoryID)
{
// the category has changed, display a new sub-heading $laDownloadItem['description']
echo '<h4 class="eventListItem">Download Category: ' . substr_replace($laDownloadItem['description'], strtoupper(substr($laDownloadItem['description'], 0, 1)), 0, 1) . '</h4>' ;
// change the meta data
$lnCurrentCategoryID = $lnNextCategoryID ;
}

break ;

case 1: // event
$lnNextCategoryID = $laDownloadItem['topicID'] ;
if($lnNextCategoryID != $lnCurrentCategoryID)
{
// the category has changed, display a new sub-heading
echo '<h4 class="eventListItem">Event: ' . substr_replace($laDownloadItem['title'], strtoupper(substr($laDownloadItem['title'], 0, 1)), 0, 1) . '</h4>' ;
// change the meta data
$lnCurrentCategoryID = $lnNextCategoryID ;
}

break ;

case 2: // module
$lnNextCategoryID = $laDownloadItem['topicID'] ;
if($lnNextCategoryID != $lnCurrentCategoryID)
{
// the category has changed, display a new sub-heading
echo '<h4 class="eventListItem">Module: ' . substr_replace($laDownloadItem['title'], strtoupper(substr($laDownloadItem['title'], 0, 1)), 0, 1) . '</h4>' ;
// change the meta data
$lnCurrentCategoryID = $lnNextCategoryID ;
}

break ;
}
// write the stuff that's the same for each type - the link - url, name and the onclick code using the ID to update the association between leader and download
// note the update is only for leaders - so another hasAccess check is required.
echo '<p class="linkList">' ;
if ($loUser->hasAccess(1))
{
echo '<a id="' . $laDownloadItem['ID'] . '" "class="inlineLink" href="' . $laDownloadItem['url'] . '" title="' . $laDownloadItem['name'] . '" onclick="dataUpdate(1, ' . $laDownloadItem['ID'] . ')">' . $laDownloadItem['name'] . '</a><br />';
}
else
{
echo '<a class="inlineLink" href="' . $laDownloadItem['url'] . '" title="' . $laDownloadItem['name'] . '">' . $laDownloadItem['name'] . '</a><br />';
}
echo '</p>';

}
echo '<br />' ; // just to give it some room to breathe
}
else
{
echo '<p>' ;
echo 'There are currently no downloads available. ' ;
echo 'New information is loaded regularly so please check back soon.' ;
echo '</p>' ;
echo '<p>' ;
echo 'In the mean time please feel free to browse around the rest of the site.' ;
echo '</p>' ;
}
}
else
{
echo '<p>' ;
echo 'Unfortunately this page was accessed incorrectly.' ;
echo '</p>' ;
echo '<p>' ;
echo 'There are 3 valid ways into this page - via Resources, Leaders Forum and Training. ';
echo 'It is essential that you are a registered with the site and that you are currently logged in.' ;
echo '</p>' ;
}
}
else
{
echo '<p>' ;
echo 'Access to this area of the site is for members only. If you are a member already please log in.' ;
echo '</p>' ;
echo '<p>' ;
echo 'If you would like to join the Christian Leadership Foundation please take a moment to complete the <a class="inlineLink" href="application.php?step=1" title="Application Form">form</a>.' ;
echo '</p>' ;
}
include("include/pageFooter.php");
?>

[/php]

On downloading a file the idea is that a record is either updated in or added to the database. The purpose of this is so that at a later date I can make recommendations within the members area based on the category of downloads they have been interested in previously. A simplistic recommendation system.

In order to do this the link to the download file has an onClick that calls a JavaSacript function

Expand|Select|Wrap|Line Numbers
  1. function dataUpdate(pnType, pnItem)
  2. {
  3.     GetXmlHttpObject() ;
  4.     gcUrl = "../lib/dataupdateajax.php?type=" + pnType + "&item=" + pnItem 
  5.     gcItemID = pnItem
  6.     goXMLHTTP.onreadystatechange = function()
  7.     { 
  8.         if (goXMLHTTP.readyState==4 || goXMLHTTP.readyState=="complete")
  9.         { 
  10.             alert("Enjoy");
  11.         }
  12.     }  ;
  13.     goXMLHTTP.open("GET",gcUrl,true) ;
  14.     goXMLHTTP.send(null) ;
  15. }    
  16.  
This is getting called - the alert tells me that. However, the URL listed is not being called. I have used this methodology for form validation previously without problem.

I know it's not getting into the PHP code because I have echo lines in there before any conditions are tested and they don't execute.

The basic problem is that I can't get the php file dataupdateajax.php to load.

Any suggestions on this or alternative ways to build a recommendation system will be greatly appreciated.

Cheers
nathj
Sep 4 '07 #1
21 2430
ak1dnar
1,584 Expert 1GB
There is a ";" on line number 12 on the javascript. what is it really.
Sep 4 '07 #2
nathj
938 Expert 512MB
There is a ";" on line number 12 on the javascript. what is it really.
Hi Ajaxrand,

That's what it is. Should this be removed do you think?

Cheers
nathj
Sep 4 '07 #3
ak1dnar
1,584 Expert 1GB
Hi Ajaxrand,

That's what it is. Should this be removed do you think?

Cheers
nathj
Really I didn't go through the your php coding yet. That semicolon doesn't makes any sense to me. If you are thinking there is a issue with the URL of the Server script too, try the absolute URL, instead the relative.
Sep 4 '07 #4
nathj
938 Expert 512MB
Really I didn't go through the your php coding yet. That semicolon doesn't makes any sense to me. If you are thinking there is a issue with the URL of the Server script too, try the absolute URL, instead the relative.
Hi Ajaxrand,

I have removed the semi colon and I have altered the url to be the full path. However, this has made no noticeable difference.

I have checked the case of the php file in the code and on the server to ensure they are the same and I've been caught out by that before.

As far as I can tell the onclick event is firing nicely and the javascript fnction is executing but the XMLHTTP object is not actually running the PHP code in dataupdateajax.php.

I have used code like this previously with no problems so I'm completely flumoxed by this issue.

I have also watched the code using Firebug and I can see now errors there.

Any further thoughts at all?

Cheers
nathj
Sep 4 '07 #5
jx2
228 100+
pnType and pnItem are not url encoded that might cose problems (e.g. if there is a space in it)
regards
jx2
Sep 4 '07 #6
nathj
938 Expert 512MB
pnType and pnItem are not url encoded that might cose problems (e.g. if there is a space in it)
regards
jx2
Hi jx2,

I'll add some code to ensure there are no spaces but at present they equate to 1 and 3 respectively.

I should have said that in my original post - sorry.

Cheers
nathj
Sep 4 '07 #7
ak1dnar
1,584 Expert 1GB
Hi jx2,

I'll add some code to ensure there are no spaces but at present they equate to 1 and 3 respectively.

I should have said that in my original post - sorry.

Cheers
nathj
Please post back your javaScript coding that you have used to create XMLHttpRequest. and the calling JS function for the Php.
Sep 4 '07 #8
nathj
938 Expert 512MB
Please post back your javaScript coding that you have used to create XMLHttpRequest. and the calling JS function for the Php.
Ajaxrand,

Heres the html line that calls the javascript:
[html]<a id="3"class="inlineLink"href="http://www.christianleadership.org.uk/m3u/eddiegibbs_session1.m3u"title="What Good Looks Like - Session 1(mp3)"onclick="dataUpdate(1, 3)">What Good Looks Like - Session 1(mp3)</a>
[/html]

This is generated in PHP based on records in a database.

The function that is called in the above code is:
Expand|Select|Wrap|Line Numbers
  1. function dataUpdate(pnType, pnItem)
  2.  
  3. {
  4.  
  5.     GetXmlHttpObject() ;
  6.  
  7.     gcUrl = "http://www.christianleadership.org.uk/lib/dataupdateajax.php?type=" + pnType + "&item=" + pnItem 
  8.  
  9.     gcItemID = pnItem
  10.  
  11.     goXMLHTTP.onreadystatechange = function()
  12.  
  13.     { 
  14.  
  15.         if (goXMLHTTP.readyState==4 || goXMLHTTP.readyState=="complete")
  16.  
  17.         { 
  18.  
  19.             alert("Enjoy"); // needs to change to something else
  20.  
  21.         }
  22.  
  23.     } 
  24.  
  25.     goXMLHTTP.open("GET",gcUrl,true) ;
  26.  
  27.     goXMLHTTP.send(null) ;
  28.  
  29. }        
  30.  
This instantiates the goXMLHTTP object via the following JavaScript
(I use this function in other places and it works fine.)

Expand|Select|Wrap|Line Numbers
  1. function GetXmlHttpObject()
  2.  
  3.  
  4.     if (window.XMLHttpRequest)
  5.  
  6.     {
  7.  
  8.         goXMLHTTP=new XMLHttpRequest()
  9.  
  10.     }
  11.  
  12.     else if (window.ActiveXObject)
  13.  
  14.     {
  15.  
  16.         goXMLHTTP=new ActiveXObject("Microsoft.XMLHTTP")
  17.  
  18.     }     
  19.  
  20.     if (goXMLHTTP==null)
  21.  
  22.     {
  23.  
  24.         alert ("Browser does not support HTTP Request")
  25.  
  26.          return    
  27.  
  28.     } 
  29.  
  30.  
I think thats all the code you asked for, if there's anything else let me know and I'll pos it happily - I really need some help with this as it's driving me mad.

Cheers
nathj

PS Are there specific code tags for javascript?
Sep 5 '07 #9
ak1dnar
1,584 Expert 1GB
Hi nathj,
Once you created a variable/object on a function, you have to return them to calling function. then Only you can use them.

check out this:

Expand|Select|Wrap|Line Numbers
  1. function GetXmlHttpObject()
  2. {
  3. if (window.XMLHttpRequest)
  4. {
  5. goXMLHTTP=new XMLHttpRequest()
  6. }
  7. else if (window.ActiveXObject)
  8. {
  9. goXMLHTTP=new ActiveXObject("Microsoft.XMLHTTP")
  10. }
  11. if (goXMLHTTP==null)
  12. {
  13. alert ("Browser does not support HTTP Request")
  14. return
  15. }
  16. return goXMLHTTP; // This Line is Missing in yours
  17.  
Sep 5 '07 #10
nathj
938 Expert 512MB
Hi nathj,
Once you created a variable/object on a function, you have to return them to calling function. then Only you can use them.

check out this:

Expand|Select|Wrap|Line Numbers
  1. function GetXmlHttpObject()
  2. {
  3. if (window.XMLHttpRequest)
  4. {
  5. goXMLHTTP=new XMLHttpRequest()
  6. }
  7. else if (window.ActiveXObject)
  8. {
  9. goXMLHTTP=new ActiveXObject("Microsoft.XMLHTTP")
  10. }
  11. if (goXMLHTTP==null)
  12. {
  13. alert ("Browser does not support HTTP Request")
  14. return
  15. }
  16. return goXMLHTTP; // This Line is Missing in yours
  17.  
Hi,

Thats my bad, the goXMMLHTTP is a global variable. I had forgotten to declare it as such in my code so I have now done that but the problem persists. It still doesn't seem to be entering the code specified in the URL.

Cheers
nathj

PS Normally I don't like globals but I know there was a reason I used one here but right now I can't think of it. All I know is that it works in other cases.
Sep 5 '07 #11
ak1dnar
1,584 Expert 1GB
nathj,
Check this out, I made some changes. If your Javascripts functions in separate files, how about merge them, like this to a single unit at least for now.

Expand|Select|Wrap|Line Numbers
  1. var xmlHttp;
  2. function GetXmlHttpObject()
  3. {
  4. if (window.XMLHttpRequest)
  5. {
  6. goXMLHTTP=new XMLHttpRequest()
  7. }
  8. else if (window.ActiveXObject)
  9. {
  10. goXMLHTTP=new ActiveXObject("Microsoft.XMLHTTP")
  11. }
  12. if (goXMLHTTP==null)
  13. {
  14. alert ("Browser does not support HTTP Request")
  15. return
  16. }
  17. return goXMLHTTP;
  18.  
  19. function dataUpdate(pnType, pnItem){
  20. xmlHttp=GetXmlHttpObject();
  21. gcUrl = "server.php?type=" + pnType + "&item=" + pnItem
  22. gcItemID = pnItem
  23. xmlHttp.onreadystatechange=getTheResponse;
  24. xmlHttp.open("GET",gcUrl,true);
  25. xmlHttp.send(null);
  26. }
  27.  
  28. function getTheResponse(){
  29. if (xmlHttp.readyState==4)
  30.          if (xmlHttp.status == 200){
  31.             alert(xmlHttp.responseText);// Assumed that you are using HTML out put
  32.          }
  33. }
  34.  
call dataUpdate function with the some parameters.

If you just want to check the working condition of your JS, forget about your real php script and Do something like this. This should print alert box saying "Server is Here". post back with your updates.

server.php

Expand|Select|Wrap|Line Numbers
  1. <?Php
  2. echo 'Server is Here';
  3. ?>
Sep 5 '07 #12
nathj
938 Expert 512MB
Hi Ajaxrand,

The javascript is all in one file - functionlibrary.js.

I have altered the function that instantiates the goXMLHTTP variable so that it returns the object.

I have also 'installed' the functions you recommend and changed the php page to simply echo as you suggest.

The result is still the same. Do you think this could be due to the fact that the calling line is to download a file?

[html]
<a id="3"class="inlineLink"href="http://www.christianleadership.org.uk/m3u/eddiegibbs_session1.m3u"title="What Good Looks Like - Session 1(mp3)"onclick="dataUpdate(1, 3)">What Good Looks Like - Session 1(mp3)</a>
[/html]

I really appreciate your help with this.

Many thanks
nathj
Sep 5 '07 #13
ak1dnar
1,584 Expert 1GB
"Problem still the same", Is that mean nothing is happening.
First can you call for the download page with the Javascript file?
comment other all the other contents on the download.php and Just try to echo something back to the calling page.

And 1 more thing, replace this.

Expand|Select|Wrap|Line Numbers
  1. <a id="3"class="inlineLink"href="http://www.christianleadership.org.uk/m3u/eddiegibbs_session1.m3u"title="What Good Looks Like - Session 1(mp3)"onclick="dataUpdate(1, 3)">What Good Looks Like - Session 1(mp3)</a>
  2.  
with this.

Expand|Select|Wrap|Line Numbers
  1. <a id="3"class="inlineLink"href="#"title="What Good Looks Like - Session 1(mp3)"onclick="dataUpdate(1, 3)">What Good Looks Like - Session 1(mp3)</a>
  2.  
Sep 5 '07 #14
nathj
938 Expert 512MB
"Problem still the same", Is that mean nothing is happening.
First can you call for the download page with the Javascript file?
comment other all the other contents on the download.php and Just try to echo something back to the calling page.

And 1 more thing, replace this.

Expand|Select|Wrap|Line Numbers
  1. <a id="3"class="inlineLink"href="http://www.christianleadership.org.uk/m3u/eddiegibbs_session1.m3u"title="What Good Looks Like - Session 1(mp3)"onclick="dataUpdate(1, 3)">What Good Looks Like - Session 1(mp3)</a>
  2.  
with this.

Expand|Select|Wrap|Line Numbers
  1. <a id="3"class="inlineLink"href="#"title="What Good Looks Like - Session 1(mp3)"onclick="dataUpdate(1, 3)">What Good Looks Like - Session 1(mp3)</a>
  2.  
Hi Ajaxrand,

Making the change you suggest - so that the download page is stripped to nothing but a link really and the link has no url in it I get the alert box.

However, if I change the link to point at the file for download I don't get the alert box.

Thanks again for taking the time to help, I realy appreciate it.
nathj
Sep 5 '07 #15
ak1dnar
1,584 Expert 1GB
However, if I change the link to point at the file for download I don't get the alert box.
That's Sure,because once you put the the href="URL_TO_FILE" the default download manager for the browser will call. Not the onclick event. Now really where is the problem? hope the ajax part is done. Only problem is with the way of you calling to the ajax function.
Sep 5 '07 #16
nathj
938 Expert 512MB
That's Sure,because once you put the the href="URL_TO_FILE" the default download manager for the browser will call. Not the onclick event. Now really where is the problem? hope the ajax part is done. Only problem is with the way of you calling to the ajax function.
Hi ajaxrand,

Your patient explanation has helped me to understand better what is happening during this process.

I now think that perhaps AJAX is not the soultion to this problem and perhaps I need to do something just in PHP. Basically I need to be able to download the file and store that fact in the database. So my current thinking is to have the link go to a page theat will fun the download using the f functions in php and then update the database.

Thanks again for your help - it's be very useful

Cheers
nathj
Sep 5 '07 #17
ak1dnar
1,584 Expert 1GB
I'm really sorry nathj, I was only thinking about your JS part and till now I didn't think about what you are trying to do with the ajax. If I'm correct with AJAX we can't go for a file downloading from a server with the traditional way but there might be a way with IFRAMES.
Sep 5 '07 #18
ak1dnar
1,584 Expert 1GB
If I am adding more to my previous post, If we need to download a file (say pdf) what we have to do, set the headers with the parameters for call for the download dialog box of the browser. with ajax, since there is no traditional HTTP, There is no way to call for the download headers back to the client browser. Because ajax using asynchronous method for this.but there might be a way with Iframes.
Sep 5 '07 #19
nathj
938 Expert 512MB
If I am adding more to my previous post, If we need to download a file (say pdf) what we have to do, set the headers with the parameters for call for the download dialog box of the browser. with ajax, since there is no traditional HTTP, There is no way to call for the download headers back to the client browser. Because ajax using asynchronous method for this.but there might be a way with Iframes.
Hi Ajaxrand,

Thanks for taking the time to explain this idea to me. I have bnever used iframes and must admit the word frames puts me off a little - I don't know why, maybe a bad expereince when I was younger who knows?

I'll take some time to look into the idea of iframes and see if I can utilise that. I think I was trying to use AJAX because I'd used it before, for something else entirely, and thought it was cool. It's like they say when all you have is a hammer every problem is a nail.

If i get stuck I'll post back. Thanks again for all your help - I really appreciate it.

Cheers
nathj
Sep 6 '07 #20
ak1dnar
1,584 Expert 1GB
If you do not wish to go for ajax simply try like this: Its only for download the file. Lets assume that you are using onclick event to call the js function, in the firstPage. Then download.php will set the download headers to the client browser with the parameter for downloading. But the page will not redirect to download.php. Only the download save as dialog box appear when you there on the firstpage.
firstPage. php
Expand|Select|Wrap|Line Numbers
  1. function file_down(file_id)
  2. {
  3. window.location = "download.php?fileid="+file_id;
  4. }
  5.  

download.php
Expand|Select|Wrap|Line Numbers
  1. <?php 
  2. $fid = $_REQUEST['fileid'];
  3. require 'dbcon.php';
  4. $sql="SELECT file_name FROM products where p_id = '$fid'";
  5. $result=mysql_query($sql) or die("File Not Found : " . mysql_error());
  6. $row = mysql_fetch_assoc($result);
  7. $file = $row['file_name'];
  8. $FILE_ROOT = "file_dir/";
  9. $path = $FILE_ROOT.$file;
  10. if($file)
  11. {
  12. header("Content-Type: application/octet-stream");
  13. header("Content-Length: " . filesize($path));
  14. header('Content-Disposition: attachment; filename="'.$file.'"');
  15. readfile($path);
  16. exit();
  17. ?>
  18.  
Sep 6 '07 #21
nathj
938 Expert 512MB
Hi Ajaxrand,


Thanks for all the help you've given me on this problem. It's now merging into the smae thing as another thread I started so I thought I'd post a link to that one here and we can all work from the same page.

Initially the threads were separate but hey these things eveolve right? Anyway here is the new thread

Cheers
nathj
Sep 6 '07 #22

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: christopher.secord | last post by:
I would like have a little "loading..." tab not unlike the one that gmail uses and I would like to display that tab while an ajax call is made. The javascript to display the tab works. The...
5
by: adhag | last post by:
Hi I am faced with quite a challenge. I need to open a 70-100 meg file and be able to chunk it out using AJAX back to the client but that isn't my problem really. What I need to do is open the...
10
by: Simon | last post by:
Hi, Sorry for the cross posting, but I think it applies to both languages. As we all know, JavaScript is client side and php is server side, (the php code is 'allowed' to do stuff on the...
3
by: niks | last post by:
I'm a javascript novice trying to write a client-side program that needs to examine the text of some included code. Suppose you have the following snippet in an html document: <script...
2
by: obstinate | last post by:
hello all, i'm a newbie in ajax. now i work in team that developed an online map site which is similar like google map. we use <div> to contain the map. This div contains map image tiles and...
7
by: tader | last post by:
so i got this kind of ajax script function browserio_tipas() { var tipas; if (window.ActiveXObject) { tipas = new ActiveXObject("Microsoft.XMLHTTP"); } else if...
1
by: =?Utf-8?B?QU5lZWxpbWE=?= | last post by:
I am using the asp.net 2.0 wizard with 5 steps and would like to do the following: Load a different .ascx (control) into each of the 5 steps I can load them fine but I notice that every time I...
4
by: Nicolas R | last post by:
Hi all, Im trying to figure out how to display a 'loading' message when scripts are being executed, ie when the page is still not ready for interaction. This is for a web app which relies on...
7
by: musther | last post by:
I have a set of calculators written in JS on a page: http://www.slymail.org/vinocalc.html The page is designed to be downloaded and used offline, or simply saved as a file for speed of access and...
29
by: FreshRob | last post by:
I have been trying to fix this issue the whole of today and have gotten no where. I am developing a new website, and wanted it to display a webpage in lightbox and have an external page added to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.