|
I am doing a project which need to implement a php code function that can send a sms to my cellphone by using an infrared that is attached to my pc.
can anyone teach me how to do it ? i will really appreciate if you can teach me.
|
|
|
|
|
go to php.net and see if it says anything there about infrared. if not (as i suspect) then you probably can't do it.
maybe someone on a suitable php forum will have a bright idea for you.
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
How can I set a row to disappear? Presently I have:
function treeHide(hide, rowId)
{
someRow = document.getElementById(rowId);
someRow.visible = false;
}
and even this fails:
function treeHide(hide, rowId)
{
someRow = document.getElementById(rowId);
someRow.visible = false;
}
with the error that an 'object is required'.
What am I doing wrong?
Thanks a lot,
Jim
|
|
|
|
|
For the record, it was
<br />
someRow.style.display = 'none';<br />
|
|
|
|
|
Hello,
I'm attempting to set the size of a browser window to exactly fit the content without activating a horizontal scroll bar. basically, if i have a webpage like yahoo, i want the browser window resized to the minimum width needed to display the full width of the page content and without having a horizontal scroll bar.
how can i determine this number? i tried scrollWidth on the doc element but kept coming back with the full width of the browser window rather than the minimum width the content needs to be displayed without scroll bars.
thanks for any help
-saed
|
|
|
|
|
Our application hosts the web browser control to display a web page installed locally on users' machines. During runtime, we use the IHTMLElementCollection::item() to access elements based on their IDs and index to change the innerText of the elements. All was working fine except XP SP2. The function always returns a NULL IDispatch.
Is this new/broken and how can I get around this problem?
Thanks a lot.
|
|
|
|
|
Sorry, these are real newb questions but I am having a lot of trouble!
First, is there a function that 'splits' a string based on some chaaracter?
Second, how can I convert a string to an integer?
Thanks a bunch for your time!
Jim
|
|
|
|
|
to split
myString = "A,B,C,D"
splitString = myString.split(",")
as for converting, string to integer, why do you wnat to do that? I believe Javascript will do the job for you, you don't need to add any special processing
|
|
|
|
|
What I am going to do is store two integers in a row id using Javascript. They will be delimiited by a semi colon. One will be a string and the other is an integer. The reason I would need to convert is because it would be stored as a string, no?
Thanks a LOT,
Jim
|
|
|
|
|
hi there i want to initiate my web app from an icon on the desktop through web setup project (not manually) & for the FIRST page i want to customize it to removethe bars (can't doit by window.open becauseit is my home page)
thanks alot :->
kimo
|
|
|
|
|
hai....
i am developing an online examination system. and for this i want to disable "the back page " button . please help me out in solving my problem. if not disabling it please sugest some other idea to implement it..
|
|
|
|
|
use this code on the main page
<%
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
If Len(Session("FirstTimeToPage")) > 0 then
'The user has come back to this page after having visited
'it... wipe out the session variable and redirect them back
'to the login page
Session("FirstTimeToPage") = ""
Response.Redirect "page2.asp"
Response.End
End If
'If we reach here, the user can view the page, create the form
%>
after that on the page2.asp use the following code
Session("FirstTimeToPage") = "NO"
try it
|
|
|
|
|
Excellent read!
JavaScript Triggers[^]
"For that one fraction of a second, you were open to options you would never have considered. That is the exploration that awaits you. Not mapping stars and studying nebula, but charting the unknown possibilities of existence." - Q (Star Trek: The Next Generation) Web - Blog
|
|
|
|
|
Yup....
Saw that article a couple of weeks ago.
It is a very good way to implement advanced JavaScript without messing up your HTML code.
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Hi I 'm using Javascript for the codewriting..
i've created a text..i want to enter the name if i enter the name there is a button to navigate to the next page..
the problem is if i did'nt enter the name and click the button still it goes to the next page which i don't want to..
How can i do this? how can i do validation for the textbox?..moreover the textbox shld enter only characters not numbers..wts the code for these..
Plz help me..
Thank you very much
BhuvanaSathish
|
|
|
|
|
Try something like this:
<script>
function verifyMe(){
numberCount=0
for(i=0;i<document.myform.myname.value.length;i++){
j=i+1
mychar=document.myform.myname.value.substring(i,j)
if((0 <= mychar)&&(mychar <= 9)){
numberCount++;
}
}
if((numberCount == 0)&&(document.myform.myname.value.length > 0)){
document.myform.submit()
}else{
alert('please check your form')
}
}
</script>
<form name=myform action=nexpage.asp>
<input type=text name=myname>
<input type=button onClick=verifyMe() value=Submit>
</form>
|
|
|
|
|
Hi,
I am running ASP.Net 1.1.4322 using Visual Studio.Net2003. The name of my application is WebTest. When run this application through Visual Studio.Net2003 debug/normal mode I am getting this following error. I reinstalled the .Net framework and the visual studio as well but it did not seams to work. Also I reinstalled the IIS 5.1 as well. The OS is windowsXP.
Can anyone please help me with this error.
Regards
Parsor Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebTest.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="WebTest.Global" %>
Source File: c:\inetpub\wwwroot\WebTest\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|
|
|
|
|
I am experiencing exactly the same problem!
dazzler
|
|
|
|
|
I fixed this problem by reinstalling .Net Framework.
dazzler
|
|
|
|
|
I have an XP test machine. I have an ASP.NET web on it and an ASP web on it. The ASP.NET web is working fine but the ASP is not, just get 'Page cannot be displayed' error every time a try to browse a page. Both webs are set up the same in IIS. I can view static html pages in the ASP web with no problems.
|
|
|
|
|
Hi plzz guide me how can i trigger multiple actions in one button by using the Javascript language?
Give me some simple examples
Thank you
BhuvanaSathish
|
|
|
|
|
onclick="action1();action2();action3();"
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
Ohh Thank u soo much..
BhuvanaSathish
|
|
|
|
|
Hello, people!
I know it was asked many times, but I haven't the decision yet.
The situation:
I have 3 frames, f1, f2 and f3. f3 has a link with code:
<a href='javascript:f1.func1();'>Smth.</a>
f1.func1() makes the form in f2, with one input field, and sets focus to the field. This all works ok. I need to catch the enter and arrows keys, therefore I catch onKeyUp event. The code for it:
<input name='name' id='1-12' type='text' class='input' onKeyUp='t1.keyLinePressed(event.keyCode,this);' onClick='t1.selField(this.id)' onBlur='if (this.value==0)t1.keyLinePressed(13,this);' onChange='t1.keyLinePressed(13,this);'>
The selField function sets the focus to the field using the:
timer=setTimeout("t2.form."+name+".focus();t2.form."+name+".select();",100);
where the name is a name of the input field.
It works fine too. The keyLinePressed() function rises up every time I push a key.
The code catches next situations:
1) When user clicks the link again (form already has the input field) system do nothing, only back the focus to the field.
2) When user pushes Enter key with wrong inputs system alerts him and also backs the focus to the field.
And here is the problem:
the focus moves back, and selects the text inputed, user can type new digits, BUT the onKeyUp doesn't rise! If I move focus by pressing TAB button - the onChange rises.
I didn't found the answer here in the conference. I don't know what to do.
Any Ideas?
Thanx
|
|
|
|
|
hi
i use c# code behind for my .Aspx pages.
i create a DATALIST (MainGrpsList) with some Template Columns
and bind them to data from MS Sql DB.
----------------------------------------
<asp:datalist id="MainGrpsList" runat="server" width="682px"
height="187px" repeatcolumns="3" showfooter="False" showheader="False">
<itemtemplate>
<asp:linkbutton id="LBGrpShr" runat="server"
="" commandname="MainGrp" cssclass="main" commandargument="<%# DataBinder.Eval(Container.DataItem,
"gcode") %>" causesvalidation="False">
<%# DataBinder.Eval(Container.DataItem, "gsharh") %>
-----------------------------------
and this Event Function for ItemCommand Event:
------------------------------------
private void MainGrpsList_ItemCommand
(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
{
switch(e.CommandName.ToUpper())
{
case "MAINGRP":
TargetGrpcode=e.CommandArgument.ToString();
Server.Transfer("SubGrps.aspx");
break;
....
....
}
}
-------------------------------------------------
its works corectly on local but
when i upload the files and click on it , this error ocurse.
-------------
"The page cannot be displayed"
--------------
javascript:__doPostBack('MainGrpsList$_ctl0$LBGrpShr','')
==========
why on local its ok but on web not?
thanks alot
Site Adress: http://siteavval.com
|
|
|
|