Search found 65 matches
- Wed Mar 17, 2010 4:58 am
- Forum: PHP - Theory and Design
- Topic: Preloaded content and page transition
- Replies: 1
- Views: 764
Preloaded content and page transition
Hello people, First, I don't even know if my topic is in the right place but I'll give it a shot. I am developing a quiz based game where you need to answer 30 questions, one at a time. At any given step, except first and last question, the game works like this: Screen 1: Question is shown with poss...
- Thu Apr 16, 2009 2:51 am
- Forum: Javascript
- Topic: Break function execution from another function
- Replies: 6
- Views: 588
Re: Break function execution from another function
That's exactly what I was afraid off. Thanks for clearing it out for me. The script works like a charm. Thanks a lot, really.
- Thu Apr 16, 2009 2:38 am
- Forum: Javascript
- Topic: Break function execution from another function
- Replies: 6
- Views: 588
Re: Break function execution from another function
Thanks Vlad. I will give it a try right away. One more question. I have two options for calling DisableSubmit(). I can either use onsubmit in the <form> or onclick in the <input type="submit">. Which is better? 
- Thu Apr 16, 2009 1:00 am
- Forum: PHP - Code
- Topic: $_SESSION Security
- Replies: 4
- Views: 153
Re: $_SESSION Security
If you have some time, could you tell me a little more about your method?
- Thu Apr 16, 2009 12:56 am
- Forum: Javascript
- Topic: Break function execution from another function
- Replies: 6
- Views: 588
Re: Break function execution from another function
Here is the script and thanks :) <script type="text/javascript"> window.onload = function() { startCountDown(17, 1000, myFunction); } function startCountDown(i, p, f) { var pause = p; var fn = f; var countDownObj = document.getElementById("countDown"); if (countDo...
- Wed Apr 15, 2009 10:02 am
- Forum: PHP - Code
- Topic: $_SESSION Security
- Replies: 4
- Views: 153
$_SESSION Security
Hello, Does anyone know some good literature or has some suggestions how to securely handle $_SESSION vars? By secure I mean stop users from viewing or altering the content of these vars and stop xss/csrf attacks. The reason why I am interested in this topic is because I need to pass a lot of sensit...
- Wed Apr 15, 2009 4:15 am
- Forum: Javascript
- Topic: Break function execution from another function
- Replies: 6
- Views: 588
Break function execution from another function
I have 3 js functions. 1. countdown() which counts down from a given number, updates a div and a hidden input with the current reaming time and when it reaches 0 it will submit a form 2. submitform() is called by countdown() when reaching 0, disables the submit button and submits a form 3. disable()...
- Wed Apr 15, 2009 1:21 am
- Forum: PHP - Code
- Topic: Javascript to PHP variable any advice appreciated
- Replies: 10
- Views: 602
Re: Javascript to PHP variable any advice appreciated
Never used jQuery. Checked it some time ago, didn't find it useful for my projects. But, I know for sure that jQuery is a great tool so you might want to learn it. I have uploaded an ajax example. You can see how it works here: http://www.imediasoftware.net/ajax/ and download it here: http://www.ime...
- Tue Apr 14, 2009 12:51 am
- Forum: PHP - Code
- Topic: Javascript to PHP variable any advice appreciated
- Replies: 10
- Views: 602
Re: Javascript to PHP variable any advice appreciated
Both the div and the hidden input have the same id, that's not good. Change the id for one of them. Then, how do you set the value for the input? I believe you should use document.getElementByID('hidden_input_div').value = .......;
- Fri Apr 10, 2009 1:02 pm
- Forum: PHP - Code
- Topic: Javascript to PHP variable any advice appreciated
- Replies: 10
- Views: 602
Re: Javascript to PHP variable any advice appreciated
Not so fluent with ajax, just playing with it for a couple of months. You could start here http://w3schools.com/php/php_ajax_intro.asp which will also provide examples for your question. Depending on what you need, preventing the page to reload could proof vital :) Or running n scripts simultaneousl...
- Fri Apr 10, 2009 1:03 am
- Forum: PHP - Code
- Topic: Javascript to PHP variable any advice appreciated
- Replies: 10
- Views: 602
Re: Javascript to PHP variable any advice appreciated
You don't really need ajax, I think. Make a small form with an hidden or text input and update the value of this input from your javascript code. Add to this input a submit button and you are set :) I am having a hard time understanding your script because my js skills are 0. But, to update the valu...
- Thu Apr 02, 2009 5:22 am
- Forum: PHP - Code
- Topic: Links and navigation
- Replies: 6
- Views: 440
Re: Links and navigation
Thanks a lot. Feeling smarter 
- Thu Apr 02, 2009 3:42 am
- Forum: PHP - Code
- Topic: Links and navigation
- Replies: 6
- Views: 440
Re: Links and navigation
Your probably right. Pretty people attract more attention, so will urls. After that it's all about the content. From what I managed to read there is no problem from server side point of view if have rewrite on or off. Or is it?
Will the "ugly" links still work once rewrite is on?
Will the "ugly" links still work once rewrite is on?
- Thu Apr 02, 2009 2:32 am
- Forum: PHP - Code
- Topic: Links and navigation
- Replies: 6
- Views: 440
Re: Links and navigation
Searching again and again the web I did came across url rewriting and mod_rewrite in apache but I wasn't sure. Thanks for the confirmation. The second question: which is the safest? The classics index.php?page=news&news_id=123 or /news/123?
Thanks
Thanks
- Thu Apr 02, 2009 1:11 am
- Forum: PHP - Code
- Topic: Links and navigation
- Replies: 6
- Views: 440
Links and navigation
It's probably a silly question but I have no idea where to look for answers. I don't even know how these type of links are called in order for me to make a google search. I've been a web based application developer for a few years now but as all my apps where for intranet use only I have no real web...