bungle
-
Form post without a HTML form?
I use this same method with a client portal i maintain. The backend ajax is all delivered in JSON from publicly facing PHP scripts. I coded an html5 based iOS/android app that uses the same backend. The user authenticates once when they start the ap…
-
Form post without a HTML form?
You need to secure the process differently, you can never assume form data hasn't been interfered with, so you need to validate everything server side. The best way is to use a token that changes We are basically talking about CSRF (Cross-sit…
-
Set an HTML5 Video to PAUSE when video player is out of view
You are very welcome, let me know if you decide to progress it further.
-
Autoupdate wall using Ajax?
The network pane in Firebug should show you the ajax calls being made
-
Autoupdate wall using Ajax?
can you use firebug to see if the ajax is requesting the page? To fault find I would add a button to trigger the refreshPosts function manually, make sure that there isn't an issue with that first
-
Autoupdate wall using Ajax?
posts.php could just be the original page - your index.php if that is what it is called, it can reload itself effectively as it only pulls out the bits it needs I would normally however create a stripped down version for ajax purposes so that it lo…
-
Autoupdate wall using Ajax?
you need to give the table an id so you can refer to it and then put that inside another div that will function as the container and then use the jquery load() function to load the page via ajax and insert just the table into the div function ref…
-
Set an HTML5 Video to PAUSE when video player is out of view
Yeah, that's why I was having you apply the video slide class, so that you can then target the video element using query with slide.children('.videoslide') I may have made the mistaken assumption that this was using jquery, if no…
-
Set an HTML5 Video to PAUSE when video player is out of view
what does the structure of your slide elements look like?
-
I need to use ajax to send a php mailer form. HELP?
You could also add a php page in between that sends the mail and posts the form. The problem with both that method and the Ajax idea is that both methods will send you a mail irrelevantly of whether the donation part actually succeeded. Is there no…
-
Detect timezone?
If you have registered users than you can have them set their timezone in prefs which you can then store as an offset If they are anonymous posting you can use javascript to grab the timezone var timeZone = (new Date().gettimezoneOffset()/60)*(-1…
-
Set an HTML5 Video to PAUSE when video player is out of view
is it all video elements or do some of the other slides not have video? i have been using a condition to prevent the code firing when the video element doesn't exist as otherwise it was causing hang ups. my condition looks like this if ($(…
-
Set an HTML5 Video to PAUSE when video player is out of view
I just finished doing something like this pausing an HTML5 video element you do with $('#video').get(0).pause(); I can't get it to resume though, it always restarts from the beginning on play when you issue $('#video').…
-
Check if a postal code is within a range?
What country? I have several easy ways to do this in the US, one of which could readily be adapted to anywhere covered by google maps.
-
Email auto reply
Once you have validated the form and stored the results you would call mail() Assuming your have already taken the users $_POST['email'] variable, validated it and stored it as $email further up the script then ....
-
Somethings gone terribly wrong, what do I do?
yeah, that should be there
-
Somethings gone terribly wrong, what do I do?
Looks like you have been subject to an exploit try http://wordpress.org/extend/plugins/exploit-scanner/
-
how to make variable for html code
sorry but you are not providing enough information to tell you why that is happening. PHP is a pre processing language, your user input must be getting to the php somehow, either by being passed as a GET or POST variable, or by being recalled from …
-
how to make variable for html code
so the user is posting it with a form? what's the rest of your code?
-
how to make variable for html code
I would guess that the user HTML code is not being escaped and unescaped correctly when it is being stored. Are you storing it in a database and if so are you handing the strings correctly with addslashes() or mysql_real_escape_string() before stori…
-
Get Directory List
which line is line 53? I am not sure why you are doing while ($file = scandir(".")) I think you should be doing while ($file = scandir($handle)) FWIW to get a directory list I normally do $dir = "/mydirectory"; if (fil…
-
reload jquery functions on ipad orientation change
I normally put all the stuff that needs doing on a resize or reload in one function and then bind and call that function at load, resize and orient. You can always split. It up into separate resize and orient functions and call both at load but only…
-
What can be used to see what's loading during log in?
The network panel of the Firebug extension will let you see a detailed list of all resources being loaded with individual response times.
-
php gig list not ordering AM-PM correctly
I may have messed up the quoting in that last one If that one breaks your php then try $p->search("`gigID` = " . (int) $this->id, "str_to_date(`time`,`%l:%i`)");
-
php gig list not ordering AM-PM correctly
the SQL is storing the time in time format so that's good news Can you try modifying line 534 of gigs-classes.php so that instead of $p->search("`gigID` = " . (int) $this->id, "`time`"); it reads $p->search(&qu…
-
php gig list not ordering AM-PM correctly
The broken part is when i click on the Schedule link from the schedule page. Its trying to load http://thishope.org/schedule/schedule.php rather than /schedule.php so maybe you need to make sure your menu links are prefixed with / I can't find…
-
php gig list not ordering AM-PM correctly
Worse yet it may not be storing time in a sortable format rather as a string. I'll take a look.
-
php gig list not ordering AM-PM correctly
The problem may be that it isn't specifying ASC or DESC so it's returning in no specific order. Give me an hour or two and I'll take a look at it again.
-
Its frustrating, why isnt it working? Need help plz
change the #leftcolumn p to #leftcolumn p.checkout edit -----> Snap @joshuanhibbert
-
php gig list not ordering AM-PM correctly
that file is just the file that creates the tables presumably, the time default NULL just means the time field will be blank by default. What you are looking for the query lines some of which are found inside gigs-classes.php (i haven't looked…