Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
Arun Shah
@ameeno
ok
how should i do it?
I saw those ways on youtube
Sweet Coding :)
@SweetCodingInc
if I understood correctly, you have a php server with this end point that accepts xml file upload.php
Arun Shah
@ameeno
yep i'm using xampp
Sweet Coding :)
@SweetCodingInc
to which when the file is submitted, it is placed in a folder called uploads/
Arun Shah
@ameeno
and i want to make yep
Sweet Coding :)
@SweetCodingInc
then you want to read this file, and update you index.html
Arun Shah
@ameeno
the file is called newdData.xml
Yes
Sweet Coding :)
@SweetCodingInc
Alright then you're 50% on track
so you first need to separate out file upload logic from file retrieval logic
Arun Shah
@ameeno
presently, i am trying to simply update an unordered list
could i run the javascript at the end of the upload.php file?
i have tried new window the upload.php and then close window
Sweet Coding :)
@SweetCodingInc
That's the problem, right? How do you know the end of upload has reached?
Arun Shah
@ameeno
and i have tried to add a delay in the javascript but i do not know how
Stephen James
@sjames1958gm
@abhinav-m :+1: Well done - some suggestions
  • make the fog of war a little larger and blocked by walls
  • allow the remembering of rooms
  • bad guys don't move.
Arun Shah
@ameeno
my file is small, i'm just going to hard code a delay of 3000-5000 ms
Sweet Coding :)
@SweetCodingInc
because you have <form target="_blank" action="upload.php" method="post" when you submit the form, the page will refresh and you will lose all the progress
is your upload.php end point behaving correctly?
Arun Shah
@ameeno
i thought if i tell the php to go back to previous page we break the js
yes the upload php works beutifully
i have even tried renaming various files, the upload works well
Sweet Coding :)
@SweetCodingInc
sweet.. then I'll show you a way to fix this
first give an id to your form and remove that action="upload.php" attribute
Arun Shah
@ameeno
problem has been the WHOLE time this AJAX, Actually sweetcoding, i was having problems with the Ajax for over 2 days, And i simply introduced the upload feature today. but even with manual reading and a file previously present
it WILL NOT UPDATE my html
ok
Sweet Coding :)
@SweetCodingInc
I see...
so let's fix that problem first...
Arun Shah
@ameeno
I am happy to marry together and work on the upload after the page is actually updating (file already in folder)
but right goping to name the form with id.
Sweet Coding :)
@SweetCodingInc
give me a min
Arun Shah
@ameeno
I am trying to update the text in a LI because really what i want to do is update <img tags> but i am trying to do it incrementally,
Sweet Coding :)
@SweetCodingInc
I see
I checked your code
the ajax is working correctly
however, this part is not working correctly $(data).find('programme Data').each(function() {
Arun Shah
@ameeno
ok
would it help if i showed you a pastebin of my xml?
Sweet Coding :)
@SweetCodingInc
yeah.. let me see the content
probably it's a simple fix
Arun Shah
@ameeno
I actually am just learing jquery/js/css/html/everything all while building this page so lol
normally i am fine but this has made me really stuck
Sweet Coding :)
@SweetCodingInc
pastebin is blocked at my work proxy
Arun Shah
@ameeno
ok what else?
Sweet Coding :)
@SweetCodingInc
can you see if it works for $(data).find('programme')
Arun Shah
@ameeno
yep! that worked for sure