JavaScript Ticker Using Tabular Data Control

Dec 10, 2002

This JavaScript Ticker is an example of "Data Binding" using "Tabular Data Control (TDC)" which is a Microsoft ActiveX control built in to Internet Explorer....

View 6 Replies


ADVERTISEMENT

A JavaScript Ticker

Sep 25, 2002

<!--
********************************
Message Center 4.0
Designed for older browsers.
By Skyzyx Genesis
********************************
-->

<html>
<head>
<title>
Message Center 4.0
</title>
<script language="javascript">
<!--

// Basic Configuration
var zDelay=4000;
var zCurrMsg=0;
var zContents=new Array;

// Site Switcher
var site=1;

if (site==1)
{
// Messages
zContents[0]="This is site 1 message 1";
zContents[1]="This is site 1 message 2";
zContents[2]="This is site 1 message 3";
zContents[3]="This is site 1 message 4";
zContents[4]="This is site 1 message 5";
}
else if (site==2)
{
// Messages
zContents[0]="This is site 2 message 1";
zContents[1]="This is site 2 message 2";
zContents[2]="This is site 2 message 3";
zContents[3]="This is site 2 message 4";
zContents[4]="This is site 2 message 5";
}
else if (site==3)
{
// Messages
zContents[0]="This is site 3 message 1";
zContents[1]="This is site 3 message 2";
zContents[2]="This is site 3 message 3";
zContents[3]="This is site 3 message 4";
zContents[4]="This is site 3 message 5";
}
else if (site==4)
{
// Messages
zContents[0]="This is site 4 message 1";
zContents[1]="This is site 4 message 2";
zContents[2]="This is site 4 message 3";
zContents[3]="This is site 4 message 4";
zContents[4]="This is site 4 message 5";
}

function zMessageCenter()
{
var zMessages=zContents.length;

if (document.getElementById)
{
zMCID=document.getElementById("ShowMessageCenter");
zMCID.innerHTML=zContents[zCurrMsg];
}

// MESSAGE COUNTER
if (zCurrMsg == (zMessages-1)) zCurrMsg=0;
else zCurrMsg++;

setTimeout("zMessageCenter()", zDelay)
}
//-->
</script>
</head>
<body>
<span style="font-family:Verdana; font-size:16pt; color:#0066FF; font-weight:bold;" id="ShowMessageCenter"></span>
<script language="javascript">
<!--
zMessageCenter();
//-->
</script>
</body>
</html>

View 1 Replies View Related

Javascript Typewriter Ticker

Jul 23, 2005

Does anyone know of a good Javascript typewriter ticker that allows
you to insert HTML into the ticker. I have found lots but when HTML is
inserted, the ticker pauses at the point it reaches the HTML as well
as applying the formatting. I need one whose character timer ignores
characters in tags. I need to apply font color and weight styling to
different words.

View 3 Replies View Related

Control Visibility - How Data Gets Displayed

May 5, 2010

I'm using PHP and adding Javascript to snazz up how my data gets displayed. This isn't for a class-p, I'm just expanding my skills. I try to stay away from Javascript as much as possible for compatibility reasons, but there are some instances where I can't get away with it. In my web apps class a few years ago, we used ASP.NET, C# and Javascript. The instructor really had no idea what she was talking about... But we were making labels visible/invisible for input validation. As I recall, this was server-side, but I don't remember the page reloading. I need a method of making an html control element visible or invisible without a page refresh based on whatever criteria I have at the moment. I don't see any reason why Javascript couldn't do this.

View 6 Replies View Related

Tabular Format Inside An Alert Box?

Jun 3, 2009

I need to display the values (from the form) in a tabular format using a alert box when a save button is clicked. Is there a way to create a table inside an alert message?

View 4 Replies View Related

Delete Script For Deleting Document In Tabular Grid?

Mar 6, 2009

I have tabular grid in .net code showing list of document

document 1 <remove>
document 2 <remove>
document 3 <remove>

now i have to write javascript to remove document from list and adjust table e.g if i remove document 2 by clicking remove button in front of it document 3 shd come above in place of document 2 and list shd be refreshed.

View 1 Replies View Related

Using Dynamically Add Funtion For A Tabular Form And Posting To Formtools?

Sep 15, 2011

i am having a few problems with my form and i was hoping someone can help me understand what i am doing wrong. I'm new to java and scripting for forms. Usually i use Simfatic Forms to build my forms but this form requires special coding and work. I'm build a 5 table form with a dynamically add and remove function that will allow the user to add more Rows to the form.

What i would like the add function to do is allow my users to pick from a Dropdown menu how many rows they would like to add to the form from 1,5,10,15,20,25 rows. I have gotten the form to allow the add function of one row only but i cant get the add function to allow the select from list.

when the row repeats it wont repeat the datepicker to a workable map or the number system from 5+ in table ren5 i have the page up on my site for testing purposes so you can see what is going on. Another issue im having is when i submit the form to my formtools it takes all the input info and puts it in one line in the datebase. What im trying to do is have each table submit to its own row in the datebase.

What im looking for is help understanding what i need to do to make this work. I have been reading a lot of tutorials and have been searching a lot of help sites but everything i have read and tried so far will not work for what im trying to do.

I really need help getting this to work in the next couple of days. Here is the link to the page on my server so you can see what is going [URL]..

[Code]...

View 6 Replies View Related

Control Collection In Javascript

Jul 23, 2005

I have a .net application that I am trying to add some javascript code
to for a client-side execution. What I want to do is resize all the
HTML text fields on my web form, but instead of writing a line for
each text box I would like to loop through a collection of controls
and resize the control if it is a text field. Is there a way to do
this in javascript? The function below is what I have been toying with
for the past couple of hours. Another idea was to use a css, but I
can't find an element for the text field.


function Test()
{
Tarray = new Object;
Tarray = document.Form1.children
for (var prop in Tarray)
{
//document.writeln(Tarray.toString);
var s;
s = prop
if (Left(s, 3) == "btn")
{
prop.height = "20px";
}
}
}

View 3 Replies View Related

Javascript Font Control

May 24, 2006

I have been unable to reduce the size of the text that goes along with
my image slideshow(the play, next, stop buttons and also the captions
for the pictures) without reducing the size of my title text(my
friends).

View 3 Replies View Related

Menu Control In Javascript

Jul 20, 2005

I would like to set dynamically the pressed item of a menu of a form in javascript. First, how to get the value of the item that has been selected with the mouse. Then how to set it in javascript. I don't know the object name. I do that like form.myfield.value = xxxx with an input text, but it it doesnot work for menu!

View 1 Replies View Related

ActiveX Control In HTML/JavaScript

Jul 23, 2005

Is there any way i can show my excel chart on my web page.

View 2 Replies View Related

Javascript Use <option> From <select> As Control

Jan 20, 2006

i tried to create a dropdown menu and use the option as a control to
change content inside another text area

the code is like this:

<select name="xxxx"><option onclick="changeunitprice(29.87)"
value="1744"/>

the function changeunitprice() is called when an option is selected

problem is it works well with firefox but not IE

any ideas? or is there anyway can make same effect in IE?

View 1 Replies View Related

Using Javascript To Control Acrobat Reader

Mar 28, 2006

I need information (sure, i used google but couldn't find anything useful yet) about automating/adjusting Acrobat Reader using javascript. I need to print multiple documents without having to open them individually and selecting the print option on each document. I also need to adjust the user interface. Sometimes printing is allowed, sometimes it is not. So i need a way to disable (or remove) the print button from the default toolbar.

Anyone has experience (sample code) or documentation i can use?

View 1 Replies View Related

Control Printing (What Prints) With Javascript ?

Jul 9, 2004

When designing a site, a request has come to me about printing web pages. What they want is the page to be broken up into frames, and only one frame will be able to be printed. so that if the page is broken into 3 vertical frames. Would it be possible to have it only print the middle page if the person clicked the print button.

This is so that even beginner users to IE or Netscrape would be able to get a printout of the page without having to change options in the print preferences.

* The example the person gave me was similar to Page Breaks in MS Excel. You can see the whole thing, but when print is clicked, you only get a certain section printing (even a beginner can do this).

View 3 Replies View Related

Hidden Control's Value Is Not Showing In Javascript On MAC Safari

Sep 7, 2005

I'm using input hidden control's value in the javascript function.

same code is working fine on all other browser except a specific
version of safari(i.e.: MAC OS 10.3.7 and Safari 1.2.4).

problem:
control's value is not getting displaying at the first time
when the page gets load, although the same piece of code would work if
I just refresh the page, strage.

declaration of hidden control:
<INPUT id="hSliders" type="hidden" runat="server">

javascript code which is calling the value of hSliders:

alert(document.Form1.hSliders.value)

this alert is showing nothing although it should display string.

i check the view source also control's value is getting populated.

View 1 Replies View Related

How To Dynamic Control Some Picture's Size By Javascript

Feb 14, 2006

i have some pictures in a page. there are have difference sizes. some
of them are too widen for be arrange in a line. so
i been tried to adject their sizes to more suitable.

i add a event to that image likes:
<img id="img" onLoad="adjustSize(this)" src="123.jpg">

and write a function in javascript:
function adjustSize(obj){
if (obj.width>250){
sizeRate=250/obj.width;
obj.width=obj.width*sizeRate;
if (obj.hight>268)
obj.hight=268;
}}

but exactly,i can get the image's width and height. cuz the loading
hasn't finished while the function of adjustSize works.

View 5 Replies View Related

Javascript Control For HTML Radio Button

Mar 24, 2006

I'm not what you would call naturally gifted with javascript (I use PHP mostly), so I hope this is an easy question for one of you....

I'm trying to create a HTML link that, when clicked, affects a pair of HTML radio buttons by moving the selection from one radio button to the other.

the following code is wrong, but It's all mine, and its what I've written in a feeble attempt to accomplish this:

<HTML>
<HEAD>
<TITLE></TITLE>

<script type='text/javascript'>
<!--
function rejectAll()
{
if (window.document.link_form.a0.checked == 1)
{
window.document.link_form.a0.checked = -1;
}
}
-->
</script>
</HEAD>
<BODY>
<form action='file.php' method='post' name='link_form'>
<input type='radio' name='a0' value=&#391;' checked>
<input type='radio' name='a0' value='-1'>
</form>
<a href='javascript: void(0)' onClick='rejectAll();'>Reject All</a>
</BODY>
</HTML>

Can anyone see what I'm trying to do here and point me in the right direction...

View 3 Replies View Related

Convert News Ticker To RSS News Ticker

Nov 3, 2010

I have a simple news ticker script that taking scrolling text, but i want that it should take contents from rss feed.

Here is the code

HTML Code:

How to converting simple ticker too rss ticker?

View 1 Replies View Related

Passing Form Input Data From One Page To Another Without Control Of The Receiving Page

Jul 31, 2009

I've been searching for a few hours and haven't been able to find a code snippet to see if this is available. I'm attempting to pass text from my website to another website that has a form setup on it. I'd like to fill in the pertinent data for my users on the page that I load for them. I cannot make any changes to the receiving page as it is run by another company. I've pasted some of the code that is available on the receiving form.

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {

[Code]....

View 5 Replies View Related

JQuery :: Flexigrid Grid Control Users - Not Actually Implementing Paging Filter On Data In Grid

Jul 13, 2011

I have a question for flexigrid jquery grid control users.

I am able to display json data returned from my WCF service in my Flexigrid in my application.

The paging toolbar displays correctly and it's clear that the paging toolbar understands how I've configured it.

However, the grid is not actually implementing the paging filter on the data in the grid. For example, the paging toolbar says "Displaying 1 to 10 of 12 items". However, all 12 items are displayed in the grid.

I guess I'm missing a config setting or callback. Any idea what the problem might be?

Here is my grid config block:

View 1 Replies View Related

Need Next-previous Control To Control Contents Within An IFrame?

Oct 10, 2011

Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.

View 1 Replies View Related

RSS Ticker/scroller

May 12, 2006

I have been looking for rss scrollers/tickers which go horizontally, I
have found one which goes vertically and is very good, but I have no
idea how to change this to go hoirzontally.

Does anyone know of a script I can use to solve my problem.

Obviously it is impossible to show the script I am using for the
vertical one as it is made up of several files.

View 3 Replies View Related

Ticker Not Working In IE6 & IE7?

May 12, 2010

I have a ticker that works in IE8 and Firefox 3.6 aswell as older versions of Firefox. Here is the javascipt code:

[Code]...

When I load the page in IE6 or IE7 it just just shows the little icon at the bottom that means error on page but the page is just blank.

View 7 Replies View Related

Fading Ticker

Aug 9, 2002

This is a Fading Javascript Ticker that can tick any number of messages. The Ticking message fades in while being displayed.

<!--BEGIN FADING TICKER JAVASCRIPT-->
<script language="JavaScript1.2">

// Fading Ticker JavaScript
// © Premshree Pillai
// http://www.qiksearch.com

//--------------------------------------CUTOMISE----------------------------------------------

// Ticker Messages ( HTML Tags supported)
var qiksearch_ticker_text = new Array ("Qiksearch.com", "FREE JavaScripts by Premshree Pillai", "Articles by Premshree Pillai", "Intellisearch Bar FREE Download");

// Ticker Message URLs
var qiksearch_ticker_URL = new Array ("http://www.qiksearch.com", "http://www.qiksearch.com/javascripts.htm", "http://www.qiksearch.com/articles.htm", "http://www.qiksearch.com/intellisearch.htm");

// Ticker Message URLs' Target (1 for NEW WINDOW, 0 for SAME WINDOW)
var qiksearch_ticker_target = new Array ("0", "0", "0", "1");

var qiksearch_ticker_width = 390; // The width of the Ticker
var qiksearch_ticker_height = 25; // The height of the Ticker
var qiksearch_ticker_borderw=1; // Border width
var qiksearch_ticker_borderc="#808080"; // Border Color
var timeOutVal=200; // Delay in milliseconds
var isPause=false; // true if you want pause on mouseover, else false
// setting to true is a bit buggy

//--------------------------------------------------------------------------------------------

//-----------------------------DO-NOT-MODIFY-BELOW-THIS---------------------------------------

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1;
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1;
var ns4=document.layers;
var qiksearch_tickerObj;
var ticker_left_ns4=(screen.width/2-20)-Math.round(qiksearch_ticker_width/2);

// Setting qiksearch_tickerObj depending on Browser
function setTickerObj()
{
if(ie4)
{
qiksearch_tickerObj=document.all.qiksearch_js_ticker;
}
if(ns6)
{
qiksearch_tickerObj=document.getElementById("qiksearch_js_ticker");
}
}

// isPause Content
var isPauseContent;
if(isPause)
{
isPauseContent=' onMouseOver="delay_timeOutVal();" onMouseOut="resume_timeOutVal();"'
}
else
{
isPauseContent=''
}

if(ie4||ns6)
{
document.write('<table' + isPauseContent + ' onMouseUp="goURL();" width="' + qiksearch_ticker_width + '" height="' + qiksearch_ticker_height + '" style="cursor:pointer; background:#FFFFFF; border:' + qiksearch_ticker_borderw + 'px solid ' + qiksearch_ticker_borderc + '"><tr><td align="middle">');
document.write('<div id="qiksearch_js_ticker">');
document.write('</div>');
document.write('</td></tr></table>');
}

var def_10='A',def_11='B',def_12='C',def_13='D',def_14='E',def_15='F'
var colorVal=15;
var div_count=0;

// Fading Color code Generating function
function qiksearch_fade_desat(getColorIntVal)
{
var returnVal;
if(getColorIntVal>=10)
{
for(var i=0; i<=15; i++)
{
if((getColorIntVal==i))
{
returnVal = eval('def_' + i);
}
}
}
else
{
returnVal=getColorIntVal;
}
return(returnVal);
}

// Main
function writeDiv()
{
if(ie4||ns6)
{
qiksearch_tickerObj.innerHTML= '<font face="verdana,arial,helvetica" size="-1" color="#' + joinColor(qiksearch_fade_desat(colorVal)) + '"><b>' + qiksearch_ticker_text[div_count] + '</b></font>' ;
}
if(ns4)
{
qiksearch_tickerObj=document.qiksearch_ticker_ns4;
qiksearch_tickerObj.document.write('<table border="1" bordercolor="' + qiksearch_ticker_borderc + '"width="100%"><tr><td align="center"><a href="javascript:void(0);"' + isPauseContent + ' onMouseUp="javascript:goURL();"><font face="verdana,arial,helvetica" size="-1" color="#' + joinColor(qiksearch_fade_desat(colorVal)) + '"><b>' + qiksearch_ticker_text[div_count] + '</b></font></a></td></tr></table>');
qiksearch_tickerObj.document.close();
}
if((colorVal>0) && (colorVal!=0))
{
colorVal--;
}
else
{
colorVal=15;
if(div_count<qiksearch_ticker_text.length)
{
div_count++;
}
if(div_count==qiksearch_ticker_text.length)
{
setTimeout("resetAll()",timeOutVal);
setTimeout("writeDiv()",timeOutVal);
}
}

if(div_count<qiksearch_ticker_text.length)
{
setTimeout("writeDiv()",timeOutVal);
}
}

// Generating Final Hex Color
function joinColor(getColor)
{
return (getColor + &#390;' + getColor + &#390;' + getColor + &#390;');
}

// Reset
function resetAll()
{
div_count=0;
colorVal=15;
}

// URL Navigation function
function goURL()
{
if(qiksearch_ticker_target[div_count]=="0")
{
location.href=qiksearch_ticker_URL[div_count];
}
else
{
if(qiksearch_ticker_target[div_count]=="1")
{
window.open(qiksearch_ticker_URL[div_count]);
}
}
}

// Setting Delay on MouseOver and MouseOut
var temp_timeOutVal=timeOutVal;
function delay_timeOutVal()
{
timeOutVal=100000000000000;
setTimeout("writeDiv()",timeOutVal);
}

function resume_timeOutVal()
{
timeOutVal=temp_timeOutVal;
setTimeout("writeDiv()",timeOutVal);
}

setTickerObj();
window.onload=writeDiv;

if(ns4)
{
document.write('<layer id="qiksearch_ticker_ns4" width="' + qiksearch_ticker_width + '" left="' + ticker_left_ns4 + '"></layer>');
}
</script>
<!--END FADING TICKER JAVASCRIPT-->

View 1 Replies View Related

News Ticker

Jul 23, 2001

can anyone recommend a good dhtml vertical pausing news ticker which works on macs as well as pcs?

View 2 Replies View Related

Rss Ajax Ticker, Issues In IE

Mar 7, 2007

Ive created a ticker that reads my RSS files by loading the xml in an
Ajax function.

To refresh the content, Ive used a settimeout that reloads the xml,
through ajax calls, and refresh the portion of the page with the rss
content.

It works fine in Firefox , where the content is always updated, while
i have problems in IE since it seems that the RSS is cached at the
first page opening and so all the automatical refreshes just dont
work(the xml received is always the old one).

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved