User Profile
Collapse
Profile Sidebar
Collapse
b1randon
Last Activity: Mar 25 '08, 03:13 PM
Joined: Dec 11 '06
Location: Pittsburgh
-
If you want to cross domains you will have to do it from your server as nearly every browser will not allow this because it is such a security risk.... -
You will need to use AJAX and call your C function on the server. JS is client only so you will not be able to issue any commands for your server from the client (without making another request as is done with AJAX)....Leave a comment:
-
Everything looks fine but you haven't included the code behind your Ajax object. If you post that perhaps someone will be able to tell you....Leave a comment:
-
Do this by writing your javascript dynamically with PHP. For example:
[PHP]
<script>
var phpData = "<? echo $data ?>";
</script>
[/PHP]...Leave a comment:
-
Simon, AJAX doesn't have the tools to do what you're trying to accomplish. The X in AJAX is for XML because that is the content-type it deals with. You could easily package up your JPEG data in XML, then assemble it on the client (though I don't know how you'd do that) or you could use AJAX to trigger a change in the image source (calling your PHP script perhaps). Anyhow, the root of the problem is that an HTTP request can have a type of JPEG...Leave a comment:
-
Here is a script that has that functionality: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm...Leave a comment:
-
The problem is that you're assigning "test" to a new Image object, then RE-assigning "test" to "../gfx/nav_es/areas_over.gif" . Something like this should fix your problem:
Code:function imgLoad () { var test = new Image(); test.src = "../gfx/nav_es/areas_over.gif"; document.images['test'].src = test.src; }
Leave a comment:
-
I can see the issue too. It works fine in FFox but IE doesn't show the check. I'm working on why. If anyone knows, do tell....Leave a comment:
-
That was my bad. I hard coded that condition because he was referencing some data that wasn't in his code snippet (and I couldn't debug). I'm sure when he uses the changes he'll put it back to the way it originally was....Leave a comment:
-
You had quite a few syntax problems but I ironed them out. This will work cross-browser:
Code:<html> <head> <script> function blah(){ var j=0; var chkbox = document.createElement('input'); chkbox.type='checkbox'; chkbox.setAttribute('name','chkPortfolio'); chkbox.setAttribute('id',"chkPortfolio_" + (j+1)); chkbox.setAttribute('value',"blah");
Leave a comment:
-
Just put that whole thing inside a table with cells that contain the images that make up your picture frame.
[HTML]
<table>
<tr>
<td><img src="frame1.gif " colspan="3"></td>
</tr>
<tr>
<td><img src="frame2.gif "></td>
<td><img src='<?=$upload ed;?>'></td>...Leave a comment:
-
It is sort of hard to imagine why you want to do that. But one thing you could do is pass "search" as a parameter to your constructor and in the constructor you can set a member variable called name to "search". Then your model class would know the name of the variable it was stored under. It is still a weird problem. Please post more about why you're doing that....Leave a comment:
-
Frin, I work on an application that does exactly this. You might want to think about using ajax. Ajax will allow you to check on the server's progress on your task intermittently. Also, since your page will no longer be loading it may clear up the problem with the animated gif (our project uses on too without issue).Leave a comment:
-
Frin, I work on an application that does exactly this. You might want to think about using ajax. Ajax will allow you to check on the server's progress on your task intermittently. Also, since your page will no longer be loading it may clear up the problem with the animated gif (our project uses on too without issue).Leave a comment:
-
That's pretty interesting. What do you achieve by removing the scripts? Are you sure you really need to remove them?...Leave a comment:
-
-
Please give this a shot on your own. It is very basic. I'll be happy to help if you get stuck. Use this link: http://dev.mysql.com/doc/refman/5.0/en/select.html....Leave a comment:
-
You can do a CHMOD as follows:
[PHP]
$output = `chmod a+rwx file.txt`;
[/PHP]
The result will be stored in $output. You should note that this won't work in safe mode....Leave a comment:
-
[PHP]
<?php
mysql_connect(" localhost", "mysql_user ", "mysql_password ") or
die("Could not connect: " . mysql_error());
mysql_select_db ("mydb");
$result = mysql_query("SE LECT field1,field2,f ield3 FROM mytable");
while ($row = mysql_fetch_arr ay($result, MYSQL_NUM)) {
printf("Field1: %s Field2: %s, Field3: %s",...Leave a comment:
-
No activity results to display
Show More
Leave a comment: