-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Yes, and why can't that JavaScript just display a HTML form? Validation or something?
-
I don't see how? If you're talking about loading the content without the page refreshing, whatever way you do it, changing the URL will reload the window. If you're not on about that, I don't understand what you're trying to say.
-
You don't need to use JavaScript for this. You're actually half way their with the code in that template call; although I don't see anything about a drop-down menu. All you need to do is submit a form with the GET method, and an input with the name of parameter: <form method="get" action=""> <input type="text" name="page" /> <input type="submit" value="Jump To Page" /> </form> That'll result in a URL like "?page=value of input".
-
Sorry, what's your question?
-
Nope. What do you mean by hide exactly? "Hide upon selecting that single option" - is this for a specific option or just any within that drop down?
-
Most likely with the way the script tag is being written to the document it's not being parsed correctly. Why are you writing to it like this anyway, can't you just store it within a file?
-
Not sure I understand what you're asking..? You can return the element object for a button input just like a submit input?
-
Within your CSS just include: img { border: 0; }
-
That would return the file name of the file they uploaded. So yeah, if that's what you're after.
-
Ever heard the term "there's more than one way to skin a cat"? Themes can be implemented in many ways. I'd suggest looking for a few tutorials on Google to get the gist of it; it's a little too broad a topic to cover on a forum post.
-
You need to join the avatar column from your users table. Assuming your users table is called `jscrgaming_users` and the columns holding the avatar and user ID are `jscrgaming_users.avatar` and `jscrgaming_users.id` respectively; you need to use something like: I highlighted the main changes in red, but I also added aliases to the table names ("nc" / "u") to prevent any ambiguity.
-
Is the format always nnn-nnn-nnnn ?
-
Knobs Aha! I cringe (never) watching that programme!
-
I think the website would have a disclaimer to protect themselves from that kind of thing.
-
How can i get this to load faster?? using jquery
Adam replied to geekisthenewsexy's topic in Javascript Help
I'm surprised this worked on your localhost to be honest. There's a few odd bits I don't quite understand. In your PHP code you have: @$username=intval($_GET['username']); intval will return the integer value of the string, a number. "name" strikes me as a string? -
How can i get this to load faster?? using jquery
Adam replied to geekisthenewsexy's topic in Javascript Help
I managed to get it working with Firebug, but the file name wasn't the only problem: if(data==ok) "ok" above is a string, you need quotes around it. -
How can i get this to load faster?? using jquery
Adam replied to geekisthenewsexy's topic in Javascript Help
I think those are the headers from when you originally load the page? I went to the URL and looked myself anyway. When the AJAX request is submitted the headers contain: And within your code: $.post("user_availability",{ username:$(this).val() } ,function(data) Shouldn't that be "user_availability.php"? Perhaps you had rewrite rules on your localhost that allowed that to work. -
Perhaps not nothing if your slanderous comments were to inadvertently loose the company a valuable contract, for example. Sounds like you're not debating whether it's legal or not, but whether it can be proven. Methodical serial killers happen to take that same approach. Obviously that's totally blown out of proportion, but if admittedly you can see yourself something is slander, then surely that's answered your own question?
-
How can i get this to load faster?? using jquery
Adam replied to geekisthenewsexy's topic in Javascript Help
Open up Live HTTP Headers, clear the window, check "Capture" if not already, submit the AJAX request. Helps not to have other applications open, say Gmail for example, that will periodically make requests as well. After you make the request, analyse the headers for any clues as to why this isn't working. The HTTP status (200, 404, 301, etc) may hold the most obvious clue. I wasn't saying this would definitely provide the answer by the way, it's just one of the ways to debug AJAX requests as they happen behind the scenes. -
Hmm, some suspicious 'encrypted PDF' file trying to make its way on to my computer.
-
basename Edit: Missed your other post. You'd need to use a data source such a database or flat file to store the current count.
-
No problem. Although actually you'd may as-well remove the redefinition: $target = "../images/" . getnick_uid($username);
-
What wrong with it exactly, that it's poking over the edge? If so that's not a PHP problem. The word's just too large to fit...
-
$target = "../images/"; $target = $target . getnick_uid($username);