Drag/swipe Mouse Pointer Side To Side To Change Images (like In Palm Pre, HTC G1)?
Mar 7, 2009I didn't want to write iPhone there.have any idea on how to do this? But most important, it IS possible, right?
View 5 RepliesI didn't want to write iPhone there.have any idea on how to do this? But most important, it IS possible, right?
View 5 RepliesI 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?
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 RelatedI 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 RelatedI 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>
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 RelatedOn 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.
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].....
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.
[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 View RelatedWith the following code I can change the mouse pointer. However, if you
click in Mozilla (with IE it works perfect) on 'Show hourglass' the mouse
pointer changes only if you move the mouse at least on pixel.
<html>
<body>
<script type = 'text/javascript'>
function show_hourglass() {
document.getElementById("my_href1").style.cursor = "wait";
document.getElementById("my_href2").style.cursor = "wait";
}
function show_hand() {
document.getElementById("my_href1").style.cursor = "default";
document.getElementById("my_href2").style.cursor = "default";
}
</script>
<a href = "javascript:show_hourglass();" id = "my_href1">Show
hourglass</a>
<br>
<a href = "javascript:show_hand();" id = "my_href2">Show hand</a>
</body>
</html>
Is there any workaround? E.g. to move the mouse one pixel by javascript?
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?
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]...
I have a JavaScript routine that runs on a timer and updates the position of a
background image using the CSS background-position property. In Internet
Explorer, it changes the mouse pointer to an hourglass when it refreshes the
screen, and this is really annoying since it happens on the timer, about every
100 milliseconds or so. Is there anything I can do about this?
1). Get the number of pixels from the left side of the hovered-element that the mouse cursor is located, and
2). Set *part* of a CSS attribute to this value
I'm making a webpage for a little embedded device with a touch screen. I don't want the mouse pointer to be visible until the user clicks on a link in which case the mouse pointer should change to an hour glass until the new page is displayed (the device is rather slow so the user needs to get some feedback while waiting). code...
This properly hides the cursor after the first page is loaded but it doesn't display the hour glass when I click on the link. Any ideas what I'm doing wrong?
I'm busy creating a website and I've implemented a gallery of sorts using this script below to make it move the images, however when it gets to the end of the cycle of images it reads the last image as the last one to reach the left hand side which is obviously quite unattractive. So all I would like to know is if there is someone who can alter this code to make it so the last image is read on the right of the block thus resulting in no blank blocks. You can view it in action at http://mcphotography.co.za/corporate.html.
Code:
var Spry;
if (!Spry) Spry = {};
[code]....
I am having a query on javascript dialog box which gets thrown on "onbeforeunload" event. i.e "leave page .. " or "stay on current page" is it possible to change the caption of these buttons using client side scripting?
View 1 Replies View RelatedDoes anyone know where I can find a client-side function I can reference from within an
HTML/JavaScript web page? I'm currently using a core PHP function to do this, but I'd rather do it on the client-side and not have to upload the large raw image to the server.
I have done a little work on a simple script to change images on mouse over and on mouse off. It was meant to be a very simple one but it is not working and I am not quite sure why.
Here's the coplete html and script code:
And I have attached them too, they are very small files. Can't quite understand what I got wrong and when I hover on the images they don't change.
I use the following code to toggle the display of some data in a table...
Code:
<script> function toggle() { if( document.getElementById("hidethis").style.display=='none' ){ document.getElementById("hidethis").style.display = ''; }else{ document.getElementById("hidethis").style.display = 'none'; } }</script>
[Code]...
Say I have 4 images. 1 main image and 3 menu images. I want the main image to change to a description of that particular link from a base image when I mouse over each menu menu image. So when I mouse over a part of my menu say 'Contacts' I want the main image to change and say 'Click here to acquire my contact information.
View 2 Replies View RelatedI need a java script code tat changes the mouse pointer to an image of my choice when a button or an image is clicked ..
View 7 Replies View RelatedI have made one banner that changes its images turn by turn with settimefunction(). I have used div and z-index to keep the layers up and down. I want only whenever any visitor clicks on the tab of the specified category because images and lower tabs are changing same time, it should stop the movement of that particular image. I am fighting more than 3 days.
Following is the html code of this banner
Code:
And then here is the style code that deals with DIV's of this html.
Code:
And the last i am putting the javascript function that runs these images turn by turn. I am calling this function on body load. i did one experiment i called this function from tabs by sending variable i value but after 2 or 3 clicks it got the speed greater and greater.
Code:
You can visit this [url] where you can easily look at the images of that are changing turn by turn with tab(s) that are also changing turn by turn.
I am trying to redevelop firefox addon, to give it more funcionality. I found JS file where all the functions are and started to edit it.
What I want to achieve is to get target of an anchor under mouse pointer (when mouse pointer is over anchor, I right click and call addon from context menu).
For example when I have anchor which HTML code is:
<a href="somewehere.com/place">place</a>
when I right click on this code and call my addon I would like to alert its href (somewehere.com/place)
I wrote a function:
function ff()
{
var current_target=this.href;
alert(current_target);
}
but it gives me udefined on alert
[URL]
I am trying to redevelop firefox addon, to give it more functionality. I found JS file where all the functions are and started to edit it.
What I want to achieve is to get target of an anchor under mouse pointer (when mouse pointer is over anchor, I right click and call addon from context menu).
For example when I have anchor which HTML code is code...