Sending Multiple Commands To NETiom?

Aug 1, 2011

The problem I have is that the NETiom board will only accept single commands to the HTML server built in to the NETiom.

What I dould like to do is send the following commands, timed 500ms apart to switch off 4 outputs before initilising 1 of the 4 inputs.

The commands I need to send are : B01 B02 B03 B04 T01

These 5 commands switch off relays 1 2 3 4 beofre energising relay 1

OK the code I'm using currently is as follows which gives me the correct buttons and action upto the point of cancelling any of the first 4 relays before energising one.

The buttons I would like this action on are NE SE SW NW

Maybe the NE button calls a section of code which will send B01 pause B02 pause B03 pause etc etc

Mak

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Netiom Inputs</title>

[Code].....

View 3 Replies


ADVERTISEMENT

JQuery :: Sending Multiple Data Values?

Aug 10, 2010

I got something like that:

<script type="text/javascript">
$(document).ready(function(){
$('#demo1').quickEdit();
});

[Code].....

View 7 Replies View Related

Sending Radio Button Value To Multiple Emails

Mar 25, 2010

I have three radio button groups with different values. My script only works for one group.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function emailTo(){
var emails = document.getElementsByName("email1");
var emailAdress = null;
[Code].....

View 3 Replies View Related

Ajax :: Sending Multiple Requests To Server

Mar 18, 2009

I need to send 15 requests to my server and get results, these results are queries to other sites. I then update my page with the results. I need to know if I am taking the correct approach, as things are working a bit slow, and i.e., seems the be as slow as a snail.

Here is my function for the first request
Code:
function one(){
var xmlHttpa=null;
try{
xmlHttpa=new XMLHttpRequest();
} catch (e){
try {
xmlHttpa=new ActiveXObject("Msxml2.XMLHTTP");
} catch (e){
try {
xmlHttpa=new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert("Your browser does not support AJAX!");
return false;
}}}

xmlHttpa.onreadystatechange=function(){
if(xmlHttpa.readyState==4){
document.getElementById('resulta').innerHTML = xmlHttpa.responseText;
var el = document.getElementById('showMessagea');
el.parentNode.removeChild(el);
applystyle();
}}
xmlHttpa.open("GET","one.php",true);
xmlHttpa.send(null);
}

I then call this function and others from my page, one(); two(); etc. Am I correct in my approach?

View 1 Replies View Related

Jquery :: Sending Array From Multiple Selection Box To Server

May 25, 2010

I have a selection box that allows me to select muliple items. I'm trying to use the click event handler to send an array of multiple selections back to the server using the $.ajax function and I'm having some issues. Below is my html, javascript code, and PHP server-side code:

HTML CODE:
<label>Select a Color</label><br/>
<select name="ddl" id="multiple" size=9 multiple>
<option value='blue'>Blue</option>
<option value='green'>Green</option>
<option value='red'>Red</option>
<option value='yellow'>Yelllow</option>
<option value='white'>White</option>
<option value='brown'>Brown</option>
<option value='black'>Black</option>
<option value='orange'>Orange</option>
<option value='purple'>Purple</option>
</select>
<input name="btn" id="btn" type="button" value="Submit" /><br/><br/><br/>
<div></div>

JAVASCRIPT CODE:
$(document).ready (
function(){
$('#btn').click(
function(){
$.ajax ({
type: "POST",
url: "phpMultiple.php",
data: {data: $('#multiple :selected').serialize()},
success: callback
});
});
});
function callback(data, status) {
$("div").text(data);
}

PHP SERVER-SIDE CODE:
<?php
$data = ($_POST['data']);
?>

View 2 Replies View Related

Dynamic Dropdown List For Sending Messages To Multiple Members

Sep 3, 2011

I am developing a messaging service between members of my site. I am developing this with asp.net mvc. When a user goes to the SendMessage view to send a message to another member, there is a dropdown list which presents the sender with all the members of the site, which he or she will pick as the recipient. However, i don't want it to be a dropdown, i want it to be a text box, where a user types in the first couple of letters of a name, and the dropdown appears then with only the members which have the same couple of letters. This is basically like every email system out there (facebook and gmail have it just like that). And after they chose one, they can select another one in the same textbox, just separated by a comma or something like that. Basically, how do i achieve that in javascript? I'm not even sure what that functionality is called, that's why i had to explain it properly.

View 3 Replies View Related

Drawing Commands?

Aug 9, 2006

I heard or read that the next version of HTML will provide long-overdue drawing commands.

Which version of Firefox, Opera or IE supports such new fancy stuff?

View 7 Replies View Related

Onload And 2 Commands...

Mar 15, 2007

I havent used java that much, and lately I updated from M$ java to SUN
(due to my bank).

Before, this worked:
<body onload="SetFocus(); window.focus();">

now, it does not. SetFocus() is included as:
<script language="JavaScript" src="mystuff.js"></script>

Though, this gives an alert:
<body onload="SetFocus(); window.focus();alert('hello')">

What is the difference and the trick here?

View 7 Replies View Related

Get Numbers From <div>'s And Use Them In If() Commands?

May 5, 2011

I trying to get numbers from <div>'s and use them in if() commands.I've got the number but the if() commands don't seem to be working.Here is the code I'm using:

Code:
window.onload = showPhoto
var pNum = 1; // global num

[code]....

View 2 Replies View Related

Break Commands In Functions

Nov 22, 2010

I had to do a break function and scripts in this portion. I am wondering if my format is correct here is what i made

Code:
function createBar(partyType,percent){ // script element to create blank cells
switch(partyType) {
case "D": document.write("<td class='dem'></td>");
break;
case "E": document.write("<td class='rep'></td>");
[Code]...

View 3 Replies View Related

Disable Default Keyboard Commands

Apr 27, 2009

I am building an application that acts like a terminal command line. I want it to be fully interactable with the major keys on the keyboard. I am using Jquery as the base for the UI. There are two methods I am trying.

1. Using a textarea element.

2. Using a div element

If I use the textarea then I cannot utilise the tab button to create an indent as it move the focus away from the element. In addition to this, I want to use tool tips as the user type and I'm doubtful I could create this with a textarea.

If I use a div element then I cannot use the backspace button as it forces my browser to go back one in history.

I would also want to use the div tag to create the text field as tooltips will be easier to implement plus I could add line numbers using a list element placed within the div.

View 2 Replies View Related

JQuery :: Control The Sequence In Which Commands Are Executed?

Feb 18, 2011

I am a self thought web developer and am constantly having problems making sure that certain commands are finished executing before others are started. My most recent problem is trying to append a large amount of data, to a div, then sliding it down slowly. Since that data takes a while to append, the system is doing both at the same time, therefore not giving me the slide down effect. Here is the code:

$('#SomeDiv').append(data);
$('#image1').animate({"left": "+=300px","top": "-=200px"}, "slow");
$('#image2').animate({"left": "+=120px"}, "slow");
$('#Image3').animate({"top": "+=250px","left": "+=300px"}, "slow");

[Code].....

Where "SomeDiv" is part of "cpage" and "data" is a large amount of images. I would like to execute line 1 and then all the other lines simultaneously. It is currently executing all of the simultaneously.

View 6 Replies View Related

Can Server Side Include Commands Have Javascript Ids?

Nov 14, 2006

can you put an id into a server side include like you can other items using javascript?

I tried this putting the id name in the virtual address area but it doesn't work. I also tried replacing virtual with id instead still with no luck.

document.getElementById('dynstuff').src=content[newm]

<!--#include virtual="dynstuff"--><!--#include virtual id="dynstuff"-->

The error message says getElementById is null or not an object but it works fine with image ids and iframe ids. Can anyone tell me why this doesn't work?

View 4 Replies View Related

Form Sending Twice

Jul 23, 2005

I have a form that calls a perl script. A few javascript routines in
the form do a few things prior to submitting. For some reason,
however, the perl script is being called twice (the perl script sends
out an email, and submitting the form once results in two identical
emails.)

Here are excerpts from the script that I believe to be relevant (I can
post more if this isn't enough, but it's long and I'm trying to keep
it brief.) Can anyone tell me what I'm doing wrong? I've read about
how you need to return true after calling the javascript via a button
click, but I've done this kind of thing in other places and it's
worked fine. I've also tried inserting a return statement here in the
function and it doesn't seem to make a difference. Strange. (BTW, I
changed the domain name in the URL out of courtesy to my client, just
FYI.) Code:

View 2 Replies View Related

Sending Email

Mar 27, 2006

How i can send e-mail using JavaScript?

View 11 Replies View Related

Sending Option Value In Php?

Feb 19, 2010

I am using triple ajax dropdwon in my php file.In my form i have species_scientifc_name & on select I am sending its id to a php file for retriving data for second dependent dropdown box, Here I need to get this id in form action file.

View 1 Replies View Related

Ajax :: Sending More Than The Value

Nov 8, 2009

I am an avid php developer and i am starting to get into ajax so i can keep file sizes and code down to a minimum.

I am looking in the w3schools ajax examples but i am a little lost at how to send through a variable to the page i am using to process.

What i would like to do is send through an id that is being recalled from the database to tell it what to save over.

ajax:

View 4 Replies View Related

Sending Variable To Php ?

Jan 10, 2005

I'm using a js menu like this:

slideMenu.makeMenu('top','OKP')
slideMenu.makeMenu('sub','Level A','../OKP/KlassementOKP.php?level=A','mainFrame')
slideMenu.makeMenu('sub','Level B','../OKP/KlassementOKP.php?level=B','mainFrame')

As you can see I send the variable level=A to php on next page. What I would like is send another variable for the TOP item: OKP How should I do that ?

View 2 Replies View Related

POP Up Closing And Sending

Feb 10, 2005

i have a some code
<form><td colspan=&#392;'><input type='button' onClick=javascript:window.open("calendar.php","name","attributes") name='button' value='Book' /></td></form>

(it is echoed in php)

the thing is when a link is clicked on the pop up i want it sent back to the original page and the pop up closed..

View 2 Replies View Related

Sending An Array From Php To Javascript

Mar 29, 2006

i have made an application in php so that people can make, on the fly, a
form. when they submit the form there is a javascript formvalidation.

because we do not know how many fields there are in the form (it is made on
the fly) i collect all the form fieldnames in an php array and sent it to
the javascript function: Code:

View 5 Replies View Related

Sending Params Through POST

Sep 20, 2006

Is there anyway I can link a piece of text through a URL, while passing
parameters to it, but through POST (so that the clients can't see what
params im passing)? I want to do this without using forms, like:

<a href='view.php?questionID=9'>Click to view</a>

Except it would be posted. Is this possible?

View 1 Replies View Related

Sending Mail Using Javascript

Jul 20, 2005

I'm would like my app to send a preformatted email(with subject and
body) everytime a user pushed a button, like : onclick "
mailto:this@that.com" , without the user seeing anything, i.e. not
being able to edit the message.

Using php, this is very simple; mail("this@example.com", "Subject",
"Line 1
Line 2
Line 3");

is there a way to do this the same, easy way using javascript?

View 4 Replies View Related

Sending Message On Load

Jul 20, 2005

I have a need for a page to pop up a user/password dialogue
when it loads and for the user/password that they enter to be sent to
be logged somewhere on the server. The underlying page then loads as
normal. Does anyone have an idea about how I might do this?

View 3 Replies View Related

JQuery :: Getting The Text From A Li And Sending It To Another Li?

Apr 9, 2011

I have this case:

1) There are 2 tipes of li: li.chosen that contains a single string. This string will be replaced frequently.

2) Each li.pick when clicked must send its text to li.chosen, but first the string of li.chosen must be erased. In short words, I want this list to act as a selector.

[Code]...

View 2 Replies View Related

How To Make Sending That Var Work

Jun 5, 2009

function ajaxFunction4(){
document.getElementById('ajaxDiv4').innerHTML='uploading...'
var ajaxRequest; // The variable that makes Ajax possible!

[code]....

View 2 Replies View Related

Ajax :: Sending An Xml Conetnt ?

Dec 9, 2009

My server has an xml configuration file which I want to receive to my browser. I can do HTTPrequset directly to the file config.xml and get it in the responseXML, but I want to do it im more secure way, so the post request will be to some script ("python" in my case), which will open and read the file.

If my xml file looks like this:

What shoud be the content of the response?

View 4 Replies View Related







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