Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
Cut the crap, it's blue.
Quick question again.
[code]<label for="thumb">[thumb]</label>
<input type="radio" name="type" value="thumb" checked />
<label for="img">[img]</label><input type="radio" name="type" value="img" /><br />[/code]
and
[code] type=$('input[name="type"]').is(':checked').val();[/code]
are returning "thumb" everytime, even if I've selected the img toggle.
[QUOTE=SataniX;32990889]Quick question again.
[code]<label for="thumb">[thumb]</label>
<input type="radio" name="type" value="thumb" checked />
<label for="img">[img]</label><input type="radio" name="type" value="img" /><br />[/code]
and
[code] type=$('input[name="type"]').is('').is(':checked').val();[/code]
are returning "thumb" everytime, even if I've selected the img toggle.[/QUOTE]
Try [code] type=$('input[name="type"]:checked').val();[/code]
[QUOTE=Darkwater124;32991014]Try [code] type=$('input[name="type"]:checked').val();[/code][/QUOTE]
That doesn't change anything, I had that originally.
Edit: Welp, i'm an idiot. Thanks for your help, was editing the wrong file.
Is there another free host as an alternative to X10?
I just need to test some MySQL and PHP things but my X10 account won't change domains.
And I really didn't want to ask because I recalled a list SOMEWHERE in this section involving host.
Skimmed everywhere, even here.
why is kohana so frustrating.
[QUOTE=SataniX;32991047]That doesn't change anything, I had that originally.
Edit: Welp, i'm an idiot. Thanks for your help, was editing the wrong file.[/QUOTE]
How do you manage to use Linux?
Nice try guys, I see you trying to drop my tables, BTW that isn't my table name.
[QUOTE=toaster468;32993701]Nice try guys, I see you trying to drop my tables, BTW that isn't my table name.[/QUOTE]
You're saying that if we found out your table name that would actually work?
[QUOTE=mobrockers2;32995629]You're saying that if we found out your table name that would actually work?[/QUOTE]umm, well let's see. it's not escaped...so yes
[QUOTE=TehWhale;32995670]umm, well let's see. it's not escaped...so yes[/QUOTE]
c00l
You wont though, but props if you do.
why not just use fucking PDO or escape it
jesus
[QUOTE=TehWhale;32995912]why not just use fucking PDO or escape it
jesus[/QUOTE]
I like livin' on the edge. And because I don't know how, Ill google it though.
[QUOTE=jaybuz;32992787]How do you manage to use Linux?[/QUOTE]Linux is awesome.
[QUOTE=Octave;32995999]Linux is awesome.[/QUOTE]
While I agree, I miss having some things I have on Windows. I dual booted so I play with Linux form time to time.
[editline]27th October 2011[/editline]
Lol who is trying to run console code in my guestbook?
[QUOTE=Octave;32995999]Linux is awesome.[/QUOTE]
wee free nginx and php5-fpm
[editline]27th October 2011[/editline]
[QUOTE=toaster468;32996028]While I agree, I miss having some things I have on Windows. I dual booted so I play with Linux form time to time.
[editline]27th October 2011[/editline]
Lol who is trying to run console code in my guestbook?[/QUOTE]
uh what
My javascript doesn't work on Internet Explorer, yet I have no idea why now.
[code]function GiveKrueger(steamid)
{
var xmlhttp = new XMLHttpRequest();
var RequestUrl = "http://items.mechatheslag.net/server.get.php?do=promotion_krueger&steamid="+steamid+"&token=smashmantoken";
xmlhttp.open("GET",RequestUrl, true);
xmlhttp.send();
$('#claim').hide();
$('#backpack').show();
}[/code]
I did some tests, and it seems to stop working at xmlhttp.open("GET",RequestUrl, true);
I checked, but apparently IE does support this, so does anyone know what's up?
[QUOTE=Smashman;32999574]My javascript doesn't work on Internet Explorer, yet I have no idea why now.
[code]function GiveKrueger(steamid)
{
var xmlhttp = new XMLHttpRequest();
var RequestUrl = "http://items.mechatheslag.net/server.get.php?do=promotion_krueger&steamid="+steamid+"&token=smashmantoken";
xmlhttp.open("GET",RequestUrl, true);
xmlhttp.send();
$('#claim').hide();
$('#backpack').show();
}[/code]
I did some tests, and it seems to stop working at xmlhttp.open("GET",RequestUrl, true);
I checked, but apparently IE does support this, so does anyone know what's up?[/QUOTE]
you're using jQuery and not [url=http://api.jquery.com/jQuery.ajax/]$.ajax[/url]?
It works, does it matter?
How about my question? :)
[QUOTE=Smashman;32999772]It works, does it matter?
How about my question? :)[/QUOTE]
my question is, if you're going to use a library, why not utilize the tools that come with it?
So you're saying I could do
[code]$.ajax({
type:"GET",
url:RequestUrl
});[/code]
Would that fix my problem?
[QUOTE=Smashman;33000231]So you're saying I could do
[code]$.ajax({
type:"GET",
url:RequestUrl
});[/code]
Would that fix my problem?[/QUOTE]
you'd also need to utilize the "success", "error", and "complete" callbacks.
I just did [code] $.get(RequestUrl);[/code]
But that still doesn't seem to fix my problem in IE.
[QUOTE=Smashman;33000356]I just did [code] $.get(RequestUrl);[/code]
But that still doesn't seem to fix my problem in IE.[/QUOTE]
well that's weird
dunno man
Here's the page I have.
[url]http://halloween.tf2mods.net/theatertest.php[/url]
It's the test page, so it's got alerts at every step of the code. It displays the var RequestUrl alert, then nothing.
It's really odd.
[QUOTE=Smashman;33000442]Here's the page I have.
[url]http://halloween.tf2mods.net/theatertest.php[/url]
It's the test page, so it's got alerts at every step of the code. It displays the var RequestUrl alert, then nothing.
It's really odd.[/QUOTE]
[code]XMLHttpRequest cannot load http://items.mechatheslag.net/server.get.php?do=promotion_krueger&steamid=undefined&token=smashmantoken. Origin http://halloween.tf2mods.net is not allowed by Access-Control-Allow-Origin.[/code]
[editline]27th October 2011[/editline]
might wanna modify the headers to Access-Control-Allow-Origin:* to allow for ajax requests
I'm not sure how to do that..
[QUOTE=Smashman;33000573]I'm not sure how to do that..[/QUOTE]
what kind of access to the items.mechatheslag.net server do you have?
None at all.
Sorry, you need to Log In to post a reply to this thread.