Forum: JavaScript / DHTML / AJAX Oct 19th, 2008 |
| Replies: 1 Views: 4,183 I found out what the problem is .
When getting an element from the wrapper set ( by index array notation or by get(index ) ), it returns a javascript element , NOT a jquery object and thus... |
Forum: JavaScript / DHTML / AJAX Oct 18th, 2008 |
| Replies: 1 Views: 4,183 Hey guys ,
While playing with jquery i've come across the following situation :
$(document).ready(function(){
$("div")[0].css("background-color","blue");
}); |
Forum: C Mar 15th, 2008 |
| Replies: 7 Views: 4,289 This helped a lot , thanks Aia . You're great . |
Forum: C Mar 15th, 2008 |
| Replies: 7 Views: 4,289 Hi guys ,
In Visual Studio 2005 I compiled the following code
int main()
{
float a;
a=0.1;
if(a<0.1) |
Forum: PHP Nov 29th, 2007 |
| Replies: 2 Views: 489 I assume you have a single form , with lots of input of type checkbox.
In this case , what you can do to avoid the if/else avalanche is to loop through the $_POST array , and make a single if... |
Forum: PHP Oct 2nd, 2007 |
| Replies: 3 Views: 730 No , I just needed a very simple post quick reply implementation on the viewtopic.php in phpbb 2.0
I found a mod that does exactly what I need .Stupid me , I googled for "short message reply" mod ,... |
Forum: PHP Oct 1st, 2007 |
| Replies: 3 Views: 730 How can I have a post quick reply textarea , just like the one on daniweb , in a phpbb 2.0 ?
Do you know/have a mod that does that ? |
Forum: PHP Sep 18th, 2007 |
| Replies: 7 Views: 2,109 This code gets the today's gas price
It's easy to get it on this site because the price is placed between a span with the id "GBPS_lblUSToday"
$arr = file("http://www.gasbuddy.com/");
... |
Forum: PHP Sep 16th, 2007 |
| Replies: 13 Views: 1,508 in the $header,make sure you have a space after From:
$headers="From: Mycompany asdfa@asfa.com"; |
Forum: PHP Sep 16th, 2007 |
| Replies: 3 Views: 931 If the user input is ,for example "house Seattle job" and you wanna get the Seattle word, you can do this with explode http://www.php.net/manual/en/function.explode.php
php if($_GET['KEY'] == "")... |
Forum: PHP Sep 8th, 2007 |
| Replies: 1 Views: 4,521 U can use the array_search() function
http://www.php.net/array_search
Make sure u use the "===" for comparising.
It should look something like this :
if ($NewVersionFlag==0)
{
$i=0;
... |
Forum: PHP Aug 26th, 2007 |
| Replies: 4 Views: 2,800 Dude , have you read at least one php book ????
Inserting images in MySql it's possible by using a BLOB column , but is very very inefficient
It takes a lot of space , thus slowing down the... |
Forum: PHP Aug 22nd, 2007 |
| Replies: 6 Views: 1,266 Some advice :
1.Always test if the file exists , first :
if(!file_exists("to.txt"))
die("File could not be found");
2.
$names[$x] = fgets($sub);
$x++;
I assume you are... |
Forum: PHP Aug 22nd, 2007 |
| Replies: 8 Views: 1,425 LOL
It's because on your laptop you have a database with a table admin(or whatever you name it ) which contains the info to be checked when a user tries to log in .
When you take your script on... |
Forum: PHP Aug 22nd, 2007 |
| Replies: 29 Views: 4,198 Are you sure you don't have a closing php tag( ?> ) somewhere ?
Type phpinfo(); at the line where it crashes ,to see if the interpreter works at that point( although I'm pretty sure it won't) |
Forum: PHP Aug 7th, 2007 |
| Replies: 0 Views: 2,706 I have a list of users(signed for a newsletter).I'm retrieving the list from a database when the admin clicks on a button.
There are maximum 10 users diplayed per page.For example,if I had 30 users... |
Forum: PHP Aug 2nd, 2007 |
| Replies: 2 Views: 702 First of all , you must get the hole html content of the page in an array.U can do that with the file() function an example :
$arr=file('http://www.yahoo.com');
Grabs all the content... |
Forum: PHP Jul 31st, 2007 |
| Replies: 7 Views: 1,134 |
Forum: PHP Jul 31st, 2007 |
| Replies: 5 Views: 6,193 This is a very famous error in php . If you echo something , before the header function you'll get an error because the "channel" was occupied by echo.You need to put the header before any echo's or... |
Forum: PHP Jul 9th, 2007 |
| Replies: 6 Views: 1,069 It's better if you leave it off . Imagine how easy is for someone to hack your code .This is the reason why the developers set the register_globals off by default from php 4.2 . Instead u can use... |
Forum: C++ Jun 6th, 2007 |
| Replies: 9 Views: 1,476 My teacher wrote that sample code , and yes,is bad formatted,but he's not so bad ; at class , he explaines very well and he's one of the few teachers who really knows about modern programming
... |
Forum: C++ Jun 5th, 2007 |
| Replies: 9 Views: 1,476 I need a book with tests, like : "Find the error in the code bellow",something like that . The c++ exam,i'll have to take, consists of trick questions , this is an example :
What's the error?... |
Forum: C++ Jun 2nd, 2007 |
| Replies: 9 Views: 1,476 I'm looking for a C++ book with exercices(solved),practice or something like "tips and trips of c++ language" cause I need to prepare for the exam.
If someone know's a kind of this book , pls... |
Forum: PHP May 9th, 2007 |
| Replies: 5 Views: 1,349 I've used wamp 1.5.0 , 1.5.0.a , 1.7.1 , 1.4.2
All of them have the short_open_tag = Off by default , and I guess that all future versions will have this as well
It can be really frustrating.
They... |
Forum: PHP May 9th, 2007 |
| Replies: 5 Views: 1,349 Hey thanks :) It worked . You we're right ,it was that short_hand thing.
You're the best |
Forum: PHP May 8th, 2007 |
| Replies: 5 Views: 1,349 The following cod,when I press the SUBMIT button , I get "Forbidden, You don't have permission to access /< on this server."
<html>
<head>
<title> The Internet Joke Database </title>
</head>... |
Forum: C++ Apr 13th, 2007 |
| Replies: 3 Views: 2,892 As Snoop Dog would said , fo'shizzle :cool:
Here's the header file :
#ifndef SET_H
#define SET_H
#include <iostream> |
Forum: C++ Apr 13th, 2007 |
| Replies: 3 Views: 2,892 I have a class , named Set,and I want to overload the operator - so I can get the difference between 2 Set object.
i.e. A={1,2,3,4} , B={ 3,4,5,6} , A-B={1,2}
In header file I declared the... |
Forum: Networking Hardware Configuration Mar 23rd, 2007 |
| Replies: 4 Views: 1,457 It was the cable , a few wires weren't entirely in contact with the pins of the RJ-45 connector |
Forum: Networking Hardware Configuration Mar 19th, 2007 |
| Replies: 4 Views: 1,457 I have 2 desktops ,with 3 network cards and Win XP.I want to connect them so i can share my files and internet connection,only that I'm getting "A network cable is unplugged".
I did everything :... |
Forum: C Jan 21st, 2007 |
| Replies: 28 Views: 6,036 U forgot to put the ampersand at age.It should look like this scanf("%d",&age)
btw,u might wanna declare variable age first. |
Forum: C Jan 21st, 2007 |
| Replies: 8 Views: 6,711 You were right.It was that time variable :cheesy:
Thanks Ancient Dragos,Ravalon |
Forum: C Jan 21st, 2007 |
| Replies: 8 Views: 6,711 #include <stdio.h>
#include <time.h>
#include <dos.h>
int foo()
{
int x=0;
while(x<1000000)
x++;
return x; |
Forum: C Jan 21st, 2007 |
| Replies: 8 Views: 6,711 Well for the second example , I get " error C2064: term does not evaluate to a function taking 1 arguments" at the start and end temp(0) :sad: |
Forum: C Jan 21st, 2007 |
| Replies: 8 Views: 6,711 After you said , at the first method ,i came up with this:
#include <stdio.h>
#include <time.h>
int foo( clock_t* time)
{
int x=0;
while(x<1000000000) |
Forum: C Jan 21st, 2007 |
| Replies: 8 Views: 6,711 I have one or more functions separate from main() , that besides the return value , must also return the time it tooked to process.
How can I do that ? |
Forum: C Jan 9th, 2007 |
| Replies: 14 Views: 2,463 Well,the hole project is strongly recommended for the use of static allocation and the insert ,delete must be made as a circular queue .
So i got a circular queue :
#include<stdio.h>... |
Forum: C Jan 3rd, 2007 |
| Replies: 14 Views: 2,463 I've chose to use an array just so i can make it easier.
Imagine this : You have 3 different arrays,separate from each other.
Let's say we must get a product name from the user(product name will... |
Forum: C Jan 3rd, 2007 |
| Replies: 14 Views: 2,463 Almost.The free space when one part gets full,is associated to the full one,thus increasing in size .In other words the data inserted into the free space when one part is full , becomes part of the... |
Forum: C Jan 3rd, 2007 |
| Replies: 14 Views: 2,463 This is what I got so far
#include <iostream>
using namespace std;
int main()
{
int v[90]; |