I think I may have solved my own problem...
I have to set the click in its own function..
...
...
...
for (var i in this.Tab)
{
this.SetClick(this.Tab[i])
}
}
ITabControl.prototype.SetClick = function(Tab)
{
var copy = this;
document.getElementById(Tab.tabId).onclick= function() {...
Thanks Guys,
I would like to take my example one step further if you dont mind..
I am trying to program with more of an Object approach, so I come into many issues..
But I have my "ITabControl" object
It can have many "Tabs" (see definition below
function...
Thanks for your help guys.
It can see how both solutions will work,
But what if i wanted to pass more than Just the ID
(i am thinking down the road a little bit here)
What if i wanted to pass an Object to the ShowTab function?
Drew
Hello,
I am looking through an array.
I want to set the onClick attribute to different elements during the loop.
Here is what I have so far
<html>
<head>
<title>My Doc</title>
<script>
function SetTabs()
{
var TabArray = new Array();
TabArray[0] = "FirstTab";
TabArray[1] = "SecondTab"...
Can i See your page, so i can view the whole source ?
You dont have to post it in here. thats too much code :)
if you point me to the URL ill view Source and take a peak.
It should be easy i think..
Drew
Maybe look into another site to host your quiz.
A site that has a function of mailing you the results.
here are some links
GOOGLE key words: Remotely Hosted Quiz
http://www.hotscripts.com/Remotely_Hosted/Tests_and_Quizzes/index.html
Drew
The small code i showed you above will show the information the user sent in their email client.
If you want to do it like other sites, you will have to look into another language to submit the email from the servers end.
Basically the program will have to take the JS results, and sent it to...
Here is some code on how to send email using a form and no other server side language.
<form action="mailto:you@yourdmainhere.com" method="post" enctype="text/plain" >
FirstName:<input type="text" name="FirstName">
Email:<input type="text" name="Email">
<input type="submit" name="submit"...
JavaScript is a Client side programming Language.
This means it does not interact with the server at all.
Therefore not having access to an email server to send the results.
There is a way you can send for data to your email using the clients email i think. But they are prompt that this is...
Hello,
I will be getting a lot of values from an XML document and I need to store them into something reusable in Javascript.
My Data will look like so. (basically a table)
name,email,address,phone,age,school,grade,teacher,bus,sports...
yes thank you. i actually came accross it yesterday
incause anyone else ever wanted to know, here is what i found
C++ is the language used...
using adobe illustrator SDK
http://partners.adobe.com/public/developer/illustrator/sdk/topic.html
kind of interesting anyway.. imagin the...
Hello,
I am interested in making an adobe illustrator plug in.
I was wondering if anyone had any ideas on what laguage they use, and any resources i should look at.
any information would be great.
My assumptions are:
They have some Object Model that can be used with some scripting language...
Hello,
I am new to C, but have some experience in other languages like C.
I need a bit of help loading a library i have found written in C
http://shapelib.maptools.org/
Included in the download of this library are some .exe .dll and .h files.
How do i go about using the functions this...
Hello,
I have been Programming in Perl and PHP for a long time and am looking for something new and powerful
Should i learn C++
will I be able to adapt to it quickly ?
I am one to learn a little bit about everyuthing and am interested in the power of C++
And can anyone reccommend any good...
Or if you dont feel like getting down an dirty just use a Remotly hosted one from a site like
( i hate to recommend themm but... )
http://bravenet.com/
You will have a banner no matter what if you use a free server.
I suggest installing the code yourself though.. you will learn a lot more and...
Here is some code that might help you.
It does not add an attachment, but simply send you the information and a link to the file created.
#!/usr/bin/perl
#- Call the CGI module.
use CGI qw/:standard/ ;
#- Prints errors on the browser
use CGI::Carp qw(fatalsToBrowser);
# Prints to HTML...
Did u want it to send the file as an ATTACHMENT or just the text submitted by the form in the email?
Its very easy to send the form and put it into a file. But if you want to start making attachemnts then there will be more involved.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.