Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 226
Search took 0.40 seconds.
Search: Posts Made By: name _F1
Forum: JavaScript programming 03-30-2008, 02:37 AM
Replies: 0
Views: 632
Posted By name _F1
Change frame properties if possible

On my page I have an IFRAME. It may contain either a page on my own domain, or an external page.

I wish to change properties of the frame (specifically an element within it) if possible (ie. if...
Forum: General web building 03-22-2008, 03:46 PM
Replies: 1
Views: 935
Posted By name _F1
BBCode alternative

I'm looking at allowing simple formatting in a field on my site. I recall seeing a BBCode-like package that converted between that markup and HTML, but instead of using the standard [b],[i], etc., it...
Forum: PHP 01-31-2008, 12:08 PM
Replies: 5
Views: 1,245
Posted By name _F1
Sorry, I didn't see your edit. I've just...

Sorry, I didn't see your edit.

I've just seen this on the PHP manual:

What security holes?
Forum: PHP 01-31-2008, 09:53 AM
Replies: 5
Views: 1,245
Posted By name _F1
Thanks for the tip! I will certainly use...

Thanks for the tip! I will certainly use gzcompress in my final code. Does the compression actually translate to the cookie though? From memory, some characters need to be escaped. Does that apply...
Forum: PHP 01-31-2008, 08:35 AM
Replies: 5
Views: 1,245
Posted By name _F1
Storing >4KB cookie values with serialize()

I have an array of values to be written to cookies. However, given the 4KB limit on cookies and the fact that the total length of the array may be longer than that, I cannot simply store the...
Forum: PHP 01-23-2008, 02:32 PM
Replies: 7
Views: 984
Posted By name _F1
I can't see a substr anywhere in your code...

I can't see a substr anywhere in your code example, so I'm not sure quite what you mean, but...

Try something like:
echo substr($content,0,200); //Echo the first 200 characters
if...
Forum: HTML & CSS 01-23-2008, 10:51 AM
Replies: 4
Views: 1,125
Posted By name _F1
Nope, that didn't work. :( Thanks for the...

Nope, that didn't work. :( Thanks for the suggestion, though.
Forum: HTML & CSS 01-23-2008, 08:47 AM
Replies: 4
Views: 1,125
Posted By name _F1
CSS tabs: IE cuts off top border

I've written/adapted some CSS tabs for use on my site. Firefox and Opera display them perfectly (as far as I can tell), but, for some reason, IE (7 is all I've tested with) cuts off the top border of...
Forum: PHP 01-15-2008, 06:16 AM
Replies: 3
Views: 1,229
Posted By name _F1
Construct Javascript array of objects

I want to construct a Javascript array of objects using a set of data from MySQL. The format should be as follows:
var arr = [{ //Begin array literal, begin object literal
id: 1,
title: "Test",...
Forum: JavaScript programming 01-14-2008, 07:19 AM
Replies: 3
Views: 6,306
Posted By name _F1
Converting string to boolean / number

I have a function which takes a string of values separated by tabs. Splitting them into individual values is fine, however, the values are all strings:
a: "true"
b: "false"
c: "5"
I can convert c...
Forum: General web building 01-11-2008, 11:49 AM
Replies: 7
Views: 1,291
Posted By name _F1
HTTP requests versus filesize

I hear a lot about trying to reduce the number of HTTP requests that a web page makes, but I also hear about reducing the filesize of scripts and stylesheets to reduce page loading times.

Which is...
Forum: JavaScript programming 12-11-2007, 06:39 AM
Replies: 2
Views: 1,698
Posted By name _F1
I didn't really explain what my drag-and-drop box...

I didn't really explain what my drag-and-drop box is. It's not actually dragging-and-dropping an object. It's just to draw a box (similarly to the Windows desktop, where you can click and drag the...
Forum: JavaScript programming 12-10-2007, 07:59 AM
Replies: 2
Views: 1,698
Posted By name _F1
Transparent element over Java applet

In my application, I wish to be able to have a drag-and-drop box that needs to be used anywhere on the page. I've got the drag-and-drop script working perfectly, but my page includes a Java applet....
Forum: Java and JSP 12-09-2007, 12:22 PM
Replies: 1
Views: 17,807
Posted By name _F1
Call Javascript function from Java applet

Is it possible to call a Javascript function from a Java applet in a cross-browser fashion? I know that Javascript can call Java methods, but can it be done in the reverse? The only other solution I...
Forum: JavaScript programming 12-08-2007, 12:12 PM
Replies: 1
Views: 526
Posted By name _F1
Add events; reference elements -current- attributes

I wanted to create a function that automatically creates a default value for any input elements with the class defaultvalue. I want it to operate similarly to Firefox's search bar. When the input is...
Forum: HTML & CSS 11-26-2007, 12:42 PM
Replies: 1
Views: 913
Posted By name _F1
#id anchors

I've always seen links that jump to a specific section of the page (using <a href="#sectionx">) reference an <a> element rather than a DIV element.

For example:
<a href="ducks">Ducks</a>
<!--...
Forum: Ajax and Design 11-25-2007, 12:28 AM
Replies: 4
Views: 3,049
Posted By name _F1
I pronounce it the same as CyanLight, like the...

I pronounce it the same as CyanLight, like the cleaning product (http://en.wikipedia.org/wiki/Ajax_%28cleanser%29).
Forum: JavaScript programming 11-24-2007, 11:47 PM
Replies: 3
Views: 807
Posted By name _F1
Thanks. That's an embarrassing mistake. :p

Thanks. That's an embarrassing mistake. :p
Forum: JavaScript programming 11-24-2007, 01:06 PM
Replies: 9
Views: 1,865
Posted By name _F1
It works fine when you don't pass the values of i...

It works fine when you don't pass the values of i and b. The value of x is zero; what is it supposed to be?
Forum: JavaScript programming 11-24-2007, 01:00 PM
Replies: 12
Views: 2,728
Posted By name _F1
It doesn't really matter if that is the string...

It doesn't really matter if that is the string supplied, for what I am doing with it.
Forum: JavaScript programming 11-24-2007, 12:57 PM
Replies: 3
Views: 807
Posted By name _F1
Passing HTML element to object

I've been writing some object-oriented code. One of the things I'm trying to do is pass a HTML element to the object so that it's innerHTML can be changed.

At first I tried sending the object...
Forum: JavaScript programming 11-24-2007, 12:45 PM
Replies: 12
Views: 2,728
Posted By name _F1
str = "1:45:12"; ...

str = "1:45:12";
str.replace(/^(\d+:)?(\d+:)?(\d+)$/, function(m,a,b,c) {
if (!a) return parseInt(c);
else if (!b) return parseInt(a) * 60 + parseInt(c);
else return parseInt(a) * 3600 +...
Forum: JavaScript programming 11-24-2007, 11:40 AM
Replies: 12
Views: 2,728
Posted By name _F1
For some reason my Enter button has just stopped...

For some reason my Enter button has just stopped working, so I can't do new lines... I haven't written the code I'll be using yet, but when I do I'll be multiplying the hours value by 3600 (to...
Forum: JavaScript programming 11-24-2007, 11:29 AM
Replies: 2
Views: 583
Posted By name _F1
Try using visibility:hidden rather than...

Try using visibility:hidden rather than display:none.
Forum: JavaScript programming 11-24-2007, 11:21 AM
Replies: 12
Views: 2,728
Posted By name _F1
I modified it slightly to make...

I modified it slightly to make ^(\d+:)?(\d+:)?(\d+)$ (my post was slightly misleading, I don't actually care how many digits for each unit). The back-reference to each unit varies according to the...
Showing results 1 to 25 of 226

 
Forum Jump

All times are GMT +1. The time now is 04:44 PM.