Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stealthly execute php script 1

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
is there a way to execute a php script in say script.php from within flash without actually opening a window / going to a page with the script?

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i meant to stick the trace in the loadnotes function to make its going there after a delete...or is that what you did.
 
yes it shows a trace for the loadnotes function and the onload part of that function.

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
also ctrl-f5 doesnt refresh the vars.... only a browser restart makes it work

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i dont understand it then.....these are functions i use all the time the only difference being that i just use the one object for loading and deleting.....separate php scripts but the 1 loadvars and i have no problems.

desperation time


try adding this to the published html to prevent caching between the head tags

<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>
<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;-1&quot;>

 
nope...

isnt there a way to unset the mydata var? or empty it?

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
the more i think about it it could well be the fact that you are using two different loadvars objects. when loadnotes is called again the onload function may not be triggered as flash considers nothing new to have happened to that object. its already loaded that data. whereas by using the same object and calling the onload function from the delete action it ought to be forced to update.

mydata.sendAndLoad(&quot;delete.php&quot;, deldata, &quot;POST&quot;);
 
nope, still the same :(

this is getting confusing isnt it?

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
im gettinf mixed up too.....can you post the fla...maybe i will spot something
 
nope :'(

still nothing, 1 thing just noticed, its putting the entries back to the origional position on the screen so it is refreshing the duplicate movieclip and all that but its not updating the actual imported php variables....

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
that may be progress so

delete the onload and replace with

mydata.onload = function() {
for (c=0; c<=_root.mydata.total; c++) {
removeMovieClip(&quot;_root.holder&quot;+c);
for (c=0; c<=mydata.total; c++) {
// make a new holder for each msg and set the position
thisx = eval(&quot;mydata.dbmcx&quot;+c);
thisy = eval(&quot;mydata.dbmcy&quot;+c);
setProperty(holder, _x, thisx);
setProperty(holder, _y, thisy);
setProperty(_root.holder, _visible, 0);
duplicateMovieClip(_root.holder, &quot;holder&quot;+c, c+15);
// set the apropriate icon
thisico = eval(&quot;mydata.ico&quot;+c);
set(&quot;_root.holder&quot;+c+&quot;.ico&quot;, thisico);
// load the variables into the new movieclip
thisdate = eval(&quot;mydata.date&quot;+c);
thisname = eval(&quot;mydata.name&quot;+c);
thismail = eval(&quot;mydata.mail&quot;+c);
thismsg = eval(&quot;mydata.msg&quot;+c);
thisid = eval(&quot;mydata.id&quot;+c);
thismarked = eval(&quot;mydata.marked&quot;+c);
set(&quot;_root.holder&quot;+c+&quot;.content.tdate&quot;, thisdate);
set(&quot;_root.holder&quot;+c+&quot;.content.name&quot;, thisname);
set(&quot;_root.holder&quot;+c+&quot;.content.mail&quot;, thismail);
set(&quot;_root.holder&quot;+c+&quot;.content.msg&quot;, thismsg);
set(&quot;_root.holder&quot;+c+&quot;.content.deletemc.id&quot;, thisid);
set(&quot;_root.holder&quot;+c+&quot;.content.markmc.id&quot;, thisid);
set(&quot;_root.holder&quot;+c+&quot;.id&quot;, c);
set(&quot;_root.holder&quot;+c+&quot;.marked&quot;, thismarked);
}
 
ok, well this is something new atleast :)

it refreshes but fails to show any entries if i ctrl-f5 it still shows the deleted entry with the rest. it has been deleted from the database.


L/P for deleting is demo/demo

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i think we where both just addin/deleting at the same time :)

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
nope, it just says deleting and doesnt do anything else.

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i have found some thing very interesting!

i have the notes.php open in one window and the flashmovie in the other. i delete an entry from the flash movie it refreshes but still shows the deleted entry i ctrl-f5 it still shows the deleted entry. i refresh the browser window with the notes.php script and then refresh the flashmovie and noe it works, it shows the entries without the entry just deleted.

??!?!?!? does that make sense anywhere????

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
not concerned about php...adds files to begin with and deletes from database so prob fine.

download again....if this dont work i give up for the time being although if something else occurs to me i will post back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top