430 Posted Topics

Member Avatar for davidthedruid
Member Avatar for abhi10kumar

I think that your safest bet is to set an onclick handler to those page number links, without removing the href attribute, something like this: [CODE=HTML] <a href="?page=2" onclick="location='?page=2&option='+option.checked;return false">2</a> [/CODE] In PHP, you than have $_GET['option']. Make the var 'option' in javascript the input element.

Member Avatar for twiss
0
1K
Member Avatar for peter_carlos

What kind of scripts are you talking about? You're posting in Javascript, but talking about PHP.

Member Avatar for peter_carlos
0
2K
Member Avatar for mangel.murti

You can set the 'action' attribute of a form to a page on another site, such as 'http://somesite.com/login.php', if that's what you mean.

Member Avatar for urtrivedi
0
119
Member Avatar for NuGG

I don't really understand what you mean with added backslashes, but in regular expressions, you need to escape them. So, to remove one or more backslashes, use: [CODE] preg_replace('/\\+/', '', $x) [/CODE]

Member Avatar for ko ko
0
1K
Member Avatar for Doctor Inferno

You'll need to change the header of the flash file, something like this should work: [code] <FilesMatch "\.swf$"> Header set Cache-Control "no-cache, max-age=0, must-revalidate" </FilesMatch> [/code]

Member Avatar for twiss
0
94
Member Avatar for dragon@dragon64

Nope: [url=http://www.daniweb.com/web-development/web-design/graphics-and-multimedia/28]Graphics and Multimedia[/url].

Member Avatar for twiss
0
36
Member Avatar for aaafan

For reference, that thread is [url=http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/366309]here[/url].

Member Avatar for twiss
0
90
Member Avatar for kiran33

Use code tags, don't write the question in the title, be a bit more clear about what you want and what part doesn't work. There's a { on line 6 that doesn't belong there.

Member Avatar for twiss
0
100
Member Avatar for rpv_sen

With jQuery you can use something like this: [CODE] $('#category_code option:selected').text() [/CODE]

Member Avatar for twiss
0
1K
Member Avatar for arjen

Same as [url=http://www.daniweb.com/software-development/vbnet/threads/307050]this[/url] thread, but take a look at: [url]http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6694&lngWId=1[/url]. It's for wave files, though, but perhaps it helps.

Member Avatar for arjen
0
375
Member Avatar for klemme

[QUOTE=blocblue]Likewise, the - character is used to specify a range in regular expressions, e.g. 0-3 or a-z. This again is escaped.[/QUOTE] The dash is used for ranges only if it is between two characters. If it is just after [ or before ] you don't need to escape it.

Member Avatar for blocblue
0
161
Member Avatar for hsmukunda

Also, remove [icode]outline: 0;[/icode]. It serves no purpose other than making your site less user friendly.

Member Avatar for twiss
0
248
Member Avatar for Virux

I don't exactly know what's wrong, but I wouldn't use tables for this. Just make a single <div id="messsages"/> and add a <div class="message"/> to that, and style .message in your css.

Member Avatar for twiss
0
98
Member Avatar for Jessurider

You'll need to use some javascript. But why would you want this? It's annoying, use something else (borders, size, color, background) to highlight something.

Member Avatar for twiss
0
49
Member Avatar for mapee
Member Avatar for Fortinbra

CSS, definetely. Tables are meant for presenting data, CSS for layout. Every layout should be perfectly possible with CSS, it's simpler, it's easier to make changes to a layout if you use CSS (also with javascript).

Member Avatar for almostbob
0
169
Member Avatar for scarlettmoon

Are the letters optional? Do you want to match all the parts of this? If both not, and if you want case-insensitivity, use something like: [CODE] /^[a-z]\d{2}[a-z]\d{3}[a-z]\d{2}[a-z]$/i [/CODE]

Member Avatar for scarlettmoon
0
163
Member Avatar for kixxhore
Member Avatar for david081

Does this code work for you? If so, is the question how to port this to javascript? You can, but you will need ActiveXObject which works only in IE.

Member Avatar for twiss
0
192
Member Avatar for exotic_ang
Member Avatar for public-image

What doesn't work? How do your get and setCookie functions work? Assuming something like [icode]function setCookie(name, value, expire)[/icode], you'll need to use [icode]setCookie('viewed', 'hidden', 12);[/icode] on the end.

Member Avatar for twiss
0
110
Member Avatar for jeffcogswell

About the last example, you can also do this: [CODE] var keys2 = [], i = 0; for (keys2[i++] in items) {} console.log(keys2); [/CODE]

Member Avatar for twiss
2
583
Member Avatar for cliffcc

Such things are written in javascript. For example: [url]http://jsbin.com/udije4/10/[/url].

Member Avatar for cliffcc
0
151
Member Avatar for floatingDivs

Perhaps Android or iOS or something else asks this automatically if you try to add a bookmark in javascript?

Member Avatar for floatingDivs
0
140
Member Avatar for Soben

If the status is 200, it means that you've got a successful response. If not, there's a problem and most likely the response is useless.

Member Avatar for twiss
0
74
Member Avatar for samsnov

Can you show the site / code? It might be that you ran into a bug in IE, or there might be a problem with your code. Edit: oops, too late :)

Member Avatar for teedoff
0
146
Member Avatar for Braden0007

POST requests should not be cached. You might want to do some logging, what data does the server get, does it respond correctly?

Member Avatar for twiss
0
212
Member Avatar for weblexie
Member Avatar for twiss
0
79
Member Avatar for twistidphreak

You could use a cookie for this, but the question is, why? Isn't it nicer to change the image after, say, two seconds?

Member Avatar for twiss
0
211
Member Avatar for PinoyDev

You'll have to do some logging: what does work, what doesn't? Do you get back the correct data? If so, are you sure $.fancybox can deal with that data? If not, how do you give it back anyway?

Member Avatar for PinoyDev
0
483
Member Avatar for slyme

If you want to open a seperate window, you'll have to create a page (in php, for example) that views the info you throw at it via GET. I don't really recommend this, though, because there's a limit on how many characters you can send with GET (and especially on …

Member Avatar for twiss
0
775
Member Avatar for gogreen1
Member Avatar for asasasasasa
0
97
Member Avatar for wenbnet
Member Avatar for jacob21
Member Avatar for jacob21
0
109
Member Avatar for zodiac19

Generally, this is not possible. What you could try, however, is to make a page on your own server, that gets the page from facebook you want (the login page), and add a script tag that does something like this: [code] self.onunload = function() { window.resizeTo(500, 700); }; [/code] Didn't …

Member Avatar for almostbob
0
110
Member Avatar for cutexxbaby

Could you at least use code tags and some identation? Also, what does and what does not work? Be a bit more specific in what you want to know.

Member Avatar for Airshow
0
192
Member Avatar for michaelzip
Member Avatar for exotic_ang

Margin values are not comma-delimited. Use [icode]margin: 90px 70px;[/icode] if you want 90px on top and bottom and 70 left and right.

Member Avatar for exotic_ang
0
104
Member Avatar for think360studio
Member Avatar for sharathg.satya
Re: AJAX

AJAX is a way of interaction between the client side (i.e., the browser), and the server side (php, for example). In javascript, you ask the browser to request a page from your server. With this request, you can send some data. The server side can respond with text, html (xml, …

Member Avatar for sharathg.satya
0
130
Member Avatar for sharathg.satya
Re: hi

I'm not really sure what you're trying to do, but perhaps you want to add a break after that line (now line 60, I guess?).

Member Avatar for diafol
0
120
Member Avatar for sharathg.satya
Member Avatar for noahshoa2

If you have strings as keys in an array, don't put quotes around them in a double-quoted string: [CODE]"Location: $_SERVER[php_self]?url=$_GET[url]"[/CODE]

Member Avatar for twiss
0
214
Member Avatar for lifeplayer

It might help if you add a proper sender name and email, send your mails plain and give them real content.

Member Avatar for twiss
0
94
Member Avatar for ronnieaka

Well, for something as complex as an online chat thing, it makes little sense to me to use a CMS (unless that CMS has a built-in messenger). A library might really help, who knows.

Member Avatar for chrishea
0
255
Member Avatar for drewpark88

You'll need to write some functions in PHP that do the mysql work. add_to_list($user), user_in_list($user), decrease_spots_left(), spots_left(). Then, you'll need to check if there's [icode]$_POST['email'][/icode] (I guess? Or something else, whatever is posted), and if so, execute those functions: [code] if(spots_left() && !user_in_list($user)) { add_to_list($user); decrease_spots_left(); } [/code] Also, [icode]if(!spots_left())[/icode] …

Member Avatar for drewpark88
0
202
Member Avatar for gamefreak5678
Member Avatar for Joe34
Member Avatar for johndohmen1963

Only Opera and Chrome seem to support this. You'll have to validate this on the server side too.

Member Avatar for johndohmen1963
0
92

The End.