Search found 17 matches

by stsr11
Tue Aug 07, 2007 4:46 pm
Forum: Javascript
Topic: Removing css hover effect from a appendChild moved element
Replies: 0
Views: 519

Removing css hover effect from a appendChild moved element

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] I am tryi...
by stsr11
Mon Mar 20, 2006 5:33 pm
Forum: Javascript
Topic: combining z-index and <DIV>s with position:relative?
Replies: 7
Views: 1646

Your right, guys thx. It works away from my app - so there must be something in css effecting it...but I'm dammned if I can find it (at the moment) I have literally dozens of recursively generated <div>s and my style sheets are templates too! When I have finished my app, I will go back and rationali...
by stsr11
Mon Mar 20, 2006 10:02 am
Forum: Javascript
Topic: combining z-index and <DIV>s with position:relative?
Replies: 7
Views: 1646

Sorry...here goes... It's a PHP app, so it's a little all over the place...It doesn't actually exist in this form in my app as all the HTML code is parsed into tokens in my templates...but I will try to put it together. I create a hidden <div> in the main page (body): <div id="help_splash"...
by stsr11
Mon Mar 20, 2006 7:04 am
Forum: Javascript
Topic: combining z-index and <DIV>s with position:relative?
Replies: 7
Views: 1646

combining z-index and <DIV>s with position:relative?

I use <span style="position:relative; top:-2px;">caption</span> to adjust the position of text which follows radios and checkboxes on forms - yeah, I know kinda anal :lol: All worked well until I coded a centred splash screen with z-index:999. Because of the position:relative in my span th...
by stsr11
Fri Feb 17, 2006 7:53 pm
Forum: PHP - Theory and Design
Topic: Text/English parsing + cleaning up input
Replies: 2
Views: 923

Text/English parsing + cleaning up input

I'm looking for some advice on cleaning up (syntax/grammar) English text uploads to a site. Site users can paste or upload text as is. i.e. I want them to be able to submit anything and my code clean it up. I want to go way beyond I need to be able to turn sentences (both terminated by cr/lf and jus...
by stsr11
Fri Feb 17, 2006 7:06 pm
Forum: Regex
Topic: Strange results when parsing accented chars
Replies: 3
Views: 2565

That worked great.

Thanks :)
by stsr11
Fri Feb 17, 2006 6:32 pm
Forum: Regex
Topic: Strange results when parsing accented chars
Replies: 3
Views: 2565

Strange results when parsing accented chars

Can anyone tell my why the following matches 'fiancé' as 'fianc'(wrong) and 'idée' as 'idée'(correct) in PHP? Bizarrely, it works perfectly in RegexBuddy!!! \b([a-zéä]+\-?[a-zéä]*){3,}\b I have tried using both ascii and unicode alternatives for the accented chars - no difference. I am pretty new to...
by stsr11
Fri Sep 24, 2004 11:29 am
Forum: PHP - Code
Topic: [SOLVED] Why is this causing my server to run out of memory?
Replies: 1
Views: 241

Ignore this I found the answer!!!
by stsr11
Fri Sep 24, 2004 11:22 am
Forum: PHP - Code
Topic: [SOLVED] Why is this causing my server to run out of memory?
Replies: 1
Views: 241

Why is this causing my server to run out of memory?

The following code should not have any effect at all, but it causes my PHP server to run out of allocated RAM. If you echo the output to a screen it appears to be adding new $data[] array elements until it crashes. Am I doing something completely stupid or is this a bug? $res = mysql_query("sel...
by stsr11
Wed Sep 22, 2004 11:49 pm
Forum: Databases
Topic: Help with mySQL query?
Replies: 3
Views: 1090

That worked great, but it turned out be a bit time consuming (6000+ books, 3000+ keywords, 20000+ keyword associations - 10 to 12 seconds) so I have decided to create a temporary table and add records according to 3 different (but much simpler) queries, all of which execute in a fraction of a second...
by stsr11
Wed Sep 22, 2004 10:54 am
Forum: Databases
Topic: Help with mySQL query?
Replies: 3
Views: 1090

Help with mySQL query?

I am trying to perform an SQL query on a book library and my SQL is not that good - can anyone help? I have 3 tables - books, subjects(keywords) and booksubjects(keywords associated with books). I want to return a result which searches Book.Title(string) and Subjects.Subject(string) for the occurenc...
by stsr11
Sun Jul 18, 2004 2:47 pm
Forum: PHP - Code
Topic: 'file' and remote urls
Replies: 4
Views: 609

Not to worry - thanks anyway.

Is there anything in the PHP info on the web link below that would stop my remote URL access from working?

http://www.dotcount.com/version.php
by stsr11
Sun Jul 18, 2004 12:18 pm
Forum: PHP - Code
Topic: 'file' and remote urls
Replies: 4
Views: 609

Sorry, I'm being a bit thick here...this is all very new to me. By fopen wrappers do you mean the 'allow_url_fopen' setting in php.ini or do you mean I have to setup/configure which wrappers are available? 'allow_url_fopen' is set to true/"1" in php.ini I thought the wrappers were a standa...
by stsr11
Sun Jul 18, 2004 8:02 am
Forum: PHP - Code
Topic: 'file' and remote urls
Replies: 4
Views: 609

'file' and remote urls

I have had a look for this one on the forum already - found a few references, but they don't seem to apply. So here goes... I am trying to read XML data from a remote URL. I have had no problems doing it locally (local host, accessing remote URL) - it all works fine on both Linux and Windows apache/...
by stsr11
Sun Jul 18, 2004 5:43 am
Forum: PHP - Code
Topic: Help me! Parsing XML file using php
Replies: 2
Views: 526

XML

Have a look at this... http://keithdevens.com/software/phpxml It's a simple XML parser that reads XML into an array. :wink: Just read your XML using 'file' as you are doing, 'implode' the result into a string and then pass it to '$myXML = XML_unserialize($string);'. Use 'print_r' or 'var_dump' to sh...