Have Multiple Expanding/collapsing Tables Side By Side?

Jun 9, 2011

[URL]I've been using the advice and code here to start incorporating expanding/collapsing tables into my work, but I'm hitting a little problem. I want to have multiple such tables side-by-side (each headed by a picture and populated by a lightbox, which isn't the issue), but Dreamweaver wants nothing to do with the idea. I don't really even know if it's possible, but if it is I'd like to know what sort of changes I might need to make to achieve it.

View 3 Replies


ADVERTISEMENT

Drag/swipe Mouse Pointer Side To Side To Change Images (like In Palm Pre, HTC G1)?

Mar 7, 2009

I didn't want to write iPhone there.have any idea on how to do this? But most important, it IS possible, right?

View 5 Replies View Related

Calling A Function - Sliding Vertical Menu In My Page In The Left Side And In The Right Side

Oct 5, 2010

I have a sliding vertical menu in my page in the left side and in the right side i have a text say for eg: Home.

So when i click on home, i need the left side vertical menu to slide and open and the home in the left side should get highlighted. How do i do this in javascript?

View 1 Replies View Related

JQuery :: Encode/decode Of JSON - Server-side And Client-side?

May 26, 2009

I am building a client-side and server-side solution and want to use JSON through Ajax in both directions. I have ASP or JavaScript server-side, though Microsoft's support of server side JavaScript seems nil, so I am reluctantly conceeding to use ASP. I'd appreciate suggestions on available solutions to encode/decode JSON on the server-side (ASP or JavaScript). I don't plan to load jQuery server-side so that rules out plug-ins. I'd also like to know what is the latest client-side encode/decode for JSON. Is it built in jQuery or a plug-in? In both server and client, decoding JSON securely is key, so using eval () to decode is out.

View 1 Replies View Related

Passing Values From Client Side To Server Side Python Script

Jun 1, 2009

I am developing a web form using python cgi which has two list boxes. On selecting a value from the listbox1, the list box 2 should get auto populated with appropriate values (which are taken from the DB). I have written a javascript function to get the selected value from the list box1. But I am struck with passing the values from the javascript to the python function written in server side in which I have written the DB related stuffs.

View 1 Replies View Related

Sending Values From Server Side To Client Side Javascript

Jul 20, 2005

I have a Hyperlink within a String like below:

sSql = "SELECT DISTINCT " + "'Action' = '<center><a
href='+char(34)+'ChangeRequest.aspx?ID='+cast(Chan geRequest.ChangeRequest_ID
as nvarchar) +CHAR(34)+'>Open</a></center>',"

I want to invoke a Client side javascript function and pass the value
of the ID. How can I accomplish this such when a user clicks "Open" he
goes to a new window with the same ID.

I tried this but it does not work:
On Server side:
sSql = "SELECT DISTINCT " + "'Action' = '<center><a href= 'javascript:
NewWindow('+cast(ChangeRequest.ChangeRequest_ID as nvarchar)+
CHAR(34)+)'>Open</a></center>',"

On Client side:
function NewWindow(myID)
{
window.open("ChangeRequest.aspx?ID="+myID,"WindowName","width=500,height=600");
}
</script>

View 1 Replies View Related

Turn A Row Of 6 Into 3/3 Side By Side In Code - Make Page Into 2 Columns

Mar 30, 2009

The code on how to make this page into 2 columns. Right now I have everything in 1 long row of 6...id like to see how to make it 3 and 3 side by side...

View 2 Replies View Related

Pass Parameter From Server Side Php To Client Side Script?

Aug 22, 2011

On the server side I have a php generated session parameter.
I need to pass it to javascript on the client side page.

I saw on the web the following solution code...

I tried it but it did not work.

View 1 Replies View Related

Adjusting Code To Use Either Server-side Or Client-side Validation--NOT BOTH?

Sep 11, 2009

I have the following PHP code, which uses server-side validation, which works fine. It the user leaves the text field empty it stores an error in a session array which is outputted on the page where the $_GET['id'] variable came from. I also implemented a snippet of javascript code that just checks to see if the cell is empty and throws up alert box. The problem is that both the javascript code and php error validation are both running when I click submit. The PHP code should be a backup to the javascript code in case the user has javascript turned off. The client-side validation should be the default. Not sure if this change should be made in my PHP Code or Javascript Code.

PHP CODE:
session_start();
require_once("../Modules/Connection_Functions.php");[code].....

View 1 Replies View Related

Client Side Script With Server Side Controls

Jul 20, 2005

I have a web form that has a checkbox on it and a textbox associated
with it. I want the textbox to be displayed when the checkbox is checked
and I want this to happen on the client-side instead of posting back to
the server. The checkbox is a server control (asp:checkbox...). I can
write some codebehind that will display an alert message upon checking
the box that looks something like this...

Page_Load...

Dim s As String
Dim scriptString As New System.Text.StringBuilder

chkExpDate.Attributes.Add("onclick", "alertmsg()")
scriptString.Append("<script language=JavaScript> function alertmsg()
{")
scriptString.Append("alert('hi'); }<")
scriptstring.Append("/" + "script>"
s = scriptstring.ToString()

Page.RegisterStartupScript("startup", s)

End Sub

I used this as a test to make sure the server control was running the
script. But, when I change the script to assess the value of the server
control checkbox such as checked = true, I get errors and if I just try
to display the asp:textbox, it doesn't work either.

View 1 Replies View Related

Server Side Or Client Side Validate?

May 14, 2007

I had a import function which allow for user import data from excel file. The number of row was dynamic, mean that user may import hundred or data or may thousand of line.

should i perform client side or server side validate?

the problem i faced was if the import thousand of line, i need display out thousand of text (multiple by 6, cause 1 got 6 fields)

the take a lot of time to loading and cause browser "hang" (response slow)

any solution for me?

View 13 Replies View Related

Converting Client Side CMS To Server Side?

Jun 16, 2010

I have the following client-side Content Management System VBscript which works great, now I'm looking at getting it to work server side so that I can update using online login rather than offline and having to upload files. To be honest, I have no idea where to begin with this,

Here's the full VB script:

[Code]...

View 1 Replies View Related

Expanding And Collapsing

Jul 25, 2007

Is there a way to expand and collapse in JavaScript? What's the best way?

View 1 Replies View Related

JQuery :: Use Document.write Statement To Write Html Tables On Client Side

Jul 27, 2010

I am totally new to jQuery and no good knowledge on javascript. However, I was assigned a task, to convert a javascript program to jQuery due to compatibility problem on browsers like Chrome and Safari. My program originally use javascript xmlDoc.load('....') to read XML file, and then use document.write statement to write html tables on client side. Something like this (the sample below may got lots of syntax problem as I jut want to show the major part):

Code:
document.write('<TABLE >');
var y=x[0].getElementsByTagName('NoOfRows');
for (i=0; i<=noofrows-1 && i<=y.length-1; i++){
document.write(' <TD>');
document.write(z[j].getElementsByTagName('RecordDetails')[0].childNodes[0].nodeValue;
}

Now I changed to use jQuery, I can read the XML file elements. However, when I try to write the table, it failed:

[Code]...

View 1 Replies View Related

Expanding / Collapsing <div> Tags

Sep 29, 2006

Ive got the follwoing javascript code that will expand/collapse a section of my site that is enclosed within a <div> tag.

function showorhide(id) {
if (document.getElementById(id).style.display == "none")
{
document.getElementById(id).style.display = "block";
}
else
{
document.getElementById(id).style.display = "none";
}
I am using asp.net 2.0 to code my site with, the above code works fine (example below:

<a href="#" Personal and Contact Details</a>
<div id="basicdetails">

</div>
All that is enclosed within the <div id="basicdetails"> is expanded / collapsed.

HOWEVER, im geting a few problems with this method: 1. On a page load, the div tags are always displayed, is there any way of having them collapsed on page_load?

2. When i put 2 seperate <div> tags (i.e. 2 seperate expand/collapse sections on the same page), one is collapsed and one is expanded, when working within the expanded one and a button is clicked (for saving of info from a form), both divs are then expanded?

View 10 Replies View Related

Client Side Cookie - Multiple Key Values Pairs

Feb 2, 2010

I need to have this setup as a client side cookie (javascript disabled - no problem).

I need to store in the cookie page name, first name and last name (and there are about 4 more items). Should i save a different cookie for each item here (all javascript examples show this) or can i do some thing like this?

View 5 Replies View Related

Js Xml At Client Side

Jul 31, 2006

In my html page i've to show a grid with some data retrieved from an xml file ... i need to this beacuse i've to use online, on a webserver and offline
with all files on a usb key, cd, etc ...

which is the best way to accomplish this?

I suppose a solution it could be via javascript:

-locally open the xml file that contains the data e then render then grid. Now i wornder about the best way to do this ... i've read about xsl transofrmation and so on ... if it's possible i'h to achieve this with a cross-browser solution!

View 1 Replies View Related

Add Js Client Side

Jul 20, 2005

Is it possible to add a js function to a loaded web page on the client side?
E.g. IE is viewing google, can I add a javascript function to that instance
of IE viewing google? I am trying to hook browser events such as button
clicks and get information such as edit field text.

View 4 Replies View Related

Javascript On The Server Side

Jul 23, 2005

However, this piece of Javascript uses some other script which is large.

<script src = "./js/tmp.js".....>

This will work if the file "tmp.js" is local. However this reduces the
portability of my *utility* Javascript
as users have to have that "tmp.js" for every webpage they have (if they
want to use it :D)

I thought of uploading "tmp.js" it to somewhere and change my code to

<script src = http://www.somewhere.com/js/tmp.js ....>

The all the users have to do is copy the piece of code that I wrote
BUT THIS DOES NOT WORK. I TRIED IT.

My questions are:

1. Is there something wrong with server-side Javascript? Or am I missing
something?

2. Is there another way to make my code portable?

View 2 Replies View Related

JavaScript On The Server Side?

Nov 3, 2006

I might be turning a corner today and seeing the light. I might still
be confused :)

If JavaScript is the language for the browser then why do servers use
Ruby/Rails, Perl/Catalyst, Python/Turbogears or PHP/Cake? Is it because
the prototype-based language is too different to be chosen except when
necessary. Is it because browser bugs make people think JavaScript is
bad? Is JavaScript not suitable for the server-side for any reason?

I imagine that if server-side programmers started to learn JavaScript
then the client-side code in the world might start to improve.
Translation layer libraries like Prototype.js or Mochikit wouldn't need
to exist. The more I learn about JavaScript the more I like it. It is
difficult to learn however for multiple reasons.

View 5 Replies View Related

Server Side Scripts With ASP

Jul 20, 2005

Does Javascript work "out of the box with IIS" as an
Active server page? ie. does it have the ability to open files
ect.?

I tried this command and it does not seem to work.

var fileSys;
var txtFile;
fileSys = new ActiveXObject("Scripting.FileSystemObject");
txtFile = fileSys.OpenTextFile("./junk.txt",1,false);

I can't find examples on the web. What would I search for to find out
about objects the Scripting.FileSystemObject?

Background:

I work at a large company with a corperate IT group.
I need to write some server side scripts. The servers they
have are Windows 2000 with IIS installed. If additional
software needs to be installed I will be forced to use VBscript.

View 5 Replies View Related

Make Div Increase From Only One Side?

Jun 16, 2009

how can i make a div to increase only in the left direction depending on the text that is inserted into it?

for example i have the code bellow:

document.getElementById("apDiv8").style.right="20px";

how can I make the right side of it to stick to an specified position?

View 2 Replies View Related

Error Message In Side Bar

Dec 28, 2011

just to start off i know my way around php and sql but not js and that is why i have posted here. I paid for a side bar to be made for me in js. Everything was working fine but a few days ago i got a error message saying" An error occured while requesting the data.Status Msg: Not Found " And the side bar has stopped working The function php page is pretty big so will attach it to this post. I would upload the js file it self but says im not allowed to upload so put it in a text file and upload.

[Code]..

View 2 Replies View Related

Div Collapse Left To Right Side ?

Feb 14, 2010

Where i can find a script for div collapse...i am looking for a script where div is collapsing from left to right side.

View 2 Replies View Related

How Can I Run Server-side Javascript On Apache ?

Jul 23, 2005

I have a number of server-side Javascript applications running on an
old Netscape Enterprise server. I want to move them to Apache. Is
there a way to do this without extensive recoding ? My code contains
a lot of Oracle and SQL Server database interaction.

View 2 Replies View Related

Scale With Client-side Javascript

Jul 23, 2005

Provided an interface to a search engine in which the onchange event in
a select list element generates between 7 and 13 additional elements
depending on the option chosen.

Here's what the customer *now* wants to do:
Generate between 200 and 350 elements. Furthermore, the logic is going
to be more complex.

I would be happy to make that happen, however here's my concern: I'm
already doing this from the server side, using CGI. I wonder what is
going to happen when we put that degree of "work" on the client browser.
I would welcome comments, caveats, or pointers to documentation and
discussions on this subject.

View 2 Replies View Related







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