|
WHOA!!!
Cool...your HTML actually got rendered...there is a weird DIV box at the top of my screen...
Anyways...3 rows using CSS...
this is what I would try:
I cannot read your existing code (cuz it got rendered - scared me I thought it was a virus or something at first) so pardon me if this is what you've done...
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
|
We can't read your answer either - it got rendered!
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Bug in the code somewhere...
I wonder why it's rendering now though...i'm sure i've used the <
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi,
i have developed a sample webapp in my machine and it is working nice.I copied my project to other machine and pasted it and i created the same virtual directory as i created in the first machine.If i run my project ,it says that
'Unable to run the project .denugger is not attached'.
But i also gone to the attach process and attached the aspt_wp.exe and it has gone to the run mode(play button disabled).
How ever i could not see my web app page & i could not trace.
Could u pls tell me how can i debug my app after been copied from other system.Is there any settings have i to set.
With Regards
Raghu
|
|
|
|
|
I have a windows application that uses my webservice.
I want to raise an event from my webservice and handle it in my windows application.
How can I do that?
I can declare an event function in the webservice, but i can't use it in my windows application with the statement Addhandler ...
Can anybody help?
Thanks
|
|
|
|
|
Hi,
I have four functions in javascript. and when I click one button(Add Transaction) that execute first function addTrans(). if I click another button(end email) that call sendEmail() function. Basically I want to while executing one function even if you click another button(that execute function) should not work. I tried many options like "switch" but still doesn't work.
Thanks in advance.
Amit Chowdhury
|
|
|
|
|
Disable the button when you call a function, when it`s finish enable it again.
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
Dear Sirs,
I am trying to download a csv file from the internet using
the MSHTML model and can successfully obtain the data to a
HTMLDocument variable using the following.
Dim objMSHTML As New MSHTML.HTMLDocument
Dim objDocument As MSHTML.HTMLDocument
Set objDocument = objMSHTML.createDocumentFromUrl
(txtURL.Text, vbNullString)
where txtURL.Text
= "http://www.a_web_site.com/download/data.csv"
What I cannot do is extract the csv data from the
variable, as it does not appear to be associated with any
node / element etc.
I know the objDocument does contain the data as I can
check the size of the variable to which it returns a
largeish value
I am really quite lost with all this - I do not really
understand how all this works and have been trying to find
an online resource that explains it in lay terms, however
everything that I have located to date goes way over my
head!
Hoping someone can assist
Regards
Jack
|
|
|
|
|
I am trying to write a web page that allows a user to select things from box1 (hospitallist1) which then show up in box2(selHospitals) - this works. Box2 items then need to be passed to the next page - I know I am just being braindead but I have been trying things for 3 hours - I cannot get this to pass the values to the next page. When I move items to the new listbox - does this create the array or do I need to do something else to create the string?. Any help is appreciated - I am new to .asp!
Below is the code for both programs.
Prog1:
<%@ Language=VBScript %>
function addtocombo()
{
var i = 0
var selectedItem
var selectedText
var selectedValue
var newoption1
for (counter = 0; counter < userslist.hospitallist.length; counter++)
{if (userslist.hospitallist.options(counter).selected == 1)
{selectedItem = document.userslist.hospitallist.selectedIndex;
selectedText =
document.userslist.hospitallist.options[counter].text;
selectedValue =
document.userslist.hospitallist.options[counter].value;
newoption1 = new Option(selectedText, selectedValue, false, false);
document.userslist.selitems.options[i] = newoption1;
i = i + 1}
}
}
function moveit()
{
var boxLength = document.userslist.selHospitals.length;
var selectedItem = document.userslist.hospitallist1.selectedIndex;
var selectedText =
document.userslist.hospitallist1.options[selectedItem].text;
var selectedValue =
document.userslist.hospitallist1.options[selectedItem].value;
var i;
var isNew = true;
if (boxLength != 0)
{
for (i = 0; i < boxLength; i++)
{thisitem = document.userslist.selHospitals.options[i].text;
if (thisitem == selectedText)
{isNew = false;
break;}
}
}
if (isNew)
{ newoption = new Option(selectedText, selectedValue, false, false);
document.userslist.selHospitals.options[boxLength] = newoption;}
document.userslist.hospitallist1.selectedIndex=-1;
}
function removefromcombo()
{ var boxLength = document.userslist.selHospitals.length;
arrSelected = new Array();
var count = 0;
for (i = 0; i < boxLength; i++)
{if (document.userslist.selHospitals.options[i].selected)
{arrSelected[count] =
document.userslist.selHospitals.options[i].value;}
count++;
}
var x;
for (i = 0; i < boxLength; i++)
{for (x = 0; x < arrSelected.length; x++)
{if (document.userslist.selHospitals.options[i].value ==
arrSelected[x])
{document.userslist.selHospitals.options[i] = null;}
}
boxLength = document.userslist.selHospitals.length;
}
}
//-->
<%
dim hospitallist1
dim selHospitals
%>
Hospital Selection List
| Click on Name to Add
Hospital List | | User's Current Hospital
List |
------ ALL HOSPITALS -----
ARH Regional Medical Center
Baptist Hospital East
Baptist Hospital Northeast
Baptist Regional Medical Center
Berea Hospital
Bluegrass Community Hospital
Bourbon Community Hospital
Breckinridge Memorial Hospital
Caldwell County Hospital
Caritas Medical Center
Carroll County Hospital
Casey County Hospital
Caverna Memorial Hospital Inc.
| | |
|
Prog2:
<%
dim strHospitalList
dim whatislist
strHospitalList = (Request.form("sHospitals"))
whatislist = TypeName(strHospitalList)
Response.write "List = " & strHospitalList
%>
|
|
|
|
|
I don't see wht a dynamically created OPTION list wouldn't get passed onto a called script...
Why not try it and see what happens?
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi ,
The values from the page automatically delete when page load is executed . You have two options
One , set the page Eventwireup ="false" in the html code . Then the control after pressing the button will not goes to page load .
the second option is take an hidden variable in html and assigned the values of list box when you are assigning the values to another list box . and take the value from hidden variable and insert , between the values because the array of javascript is not supported by not net .
when you need individual vaues use split function in .net .
when you are retrving the values from the hidden variable use id of hidden variable .value
|
|
|
|
|
Hi,
I have a list of links as an usorted list:
<ul>
<li><a href="....">link1</a></li>
<li><a href="....">link2</a></li>
<li><a href="....">link3</a></li>
<li><a href="....">link4</a></li>
<li><a href="....">link5</a></li>
<li><a href="....">link6</a></li>
</ul>
Now I would like to have this links in 3 columns; somwthing like this:
link1 link2 link3
link4 link5 link6
I don't want to use tables. My idea was to give the li elements a class name that represents the column:
<ul>
<li class="col1"><a href="....">link1</a></li>
<li class="col2"><a href="....">link2</a></li>
<li class="col3"><a href="....">link3</a></li>
<li class="col1"><a href="....">link4</a></li>
<li class="col2"><a href="....">link5</a></li>
<li class="col3"><a href="....">link6</a></li>
</ul>
but now I have the Problem of how to write the css code. I've made all of them inline (with display:inline) and gave the three classes three different positions, but now all elements are on the same line
Any Ideas how to solve this Problem without a table?
Thanks Alot
Roland
|
|
|
|
|
I have the following kind of
Text: |field|
Longer Text: |field|
As you can see, the fields dont quite line up. So, what I really want to do is somehow 'force space' (as in place sufficient tabs or whatever) in so that the two line up.
How can I do this?
Thanks a lot,
Jim
|
|
|
|
|
While you could use absolute positioning or white space or other CSS trickery to try line columns up, generally speaking, the simplest and most cross-plaftorm way to align columns is by placing your text and controls inside of a container (such as a table) that supports the alignment.
HTH,
Tim
|
|
|
|
|
|
hi all,
actually i have placed one Input box in my HTML page, and through CSS i have assigned it's position value = relative.
now i would like to know the TOP and LEFT values of this particular input box within the HTML page. when I was trying to access the values of the Input box using following code
inputbox1.style.left
inputbox1.style.top
but these lines are returning nothing
plz help me in this
thank you all in advance
nagarajuepuri
|
|
|
|
|
Try pixelLeft
If your trying to get the coordinates of an element relative to the document I believe you will have to iterate each parent element and tally up their TOP values.
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I want to exclude the header infromation from being diplayed with contents donwloaded using GET HTTP..?? Any idea how can i do that..?
|
|
|
|
|
Hi, i'm trying to attach my querystring to some email script so that it attachs the image and emails it.
My querystring would be /send.asp?name=images/logo.jpg
and heres my script
<%@ Language=VBScript %><br />
<%<br />
Dim name<br />
name=Request.QueryString("name")<br />
<br />
%><%<br />
If Len(Request.Form("txtEmail")) > 0 then<br />
<br />
Dim objMail<br />
Set objMail = Server.CreateObject("CDONTS.NewMail")<br />
<br />
objMail.From = "info@4guysfromrolla.com (4GuysFromRolla.com)"<br />
objMail.Subject = "Email attachment demo"<br />
objMail.AttachFile Server.MapPath ("name")<br />
objMail.To = Request.Form("txtEmail")<br />
objMail.Body = "This is a demo on sending an email with an attachment."<br />
objMail.Send<br />
<br />
Response.write("Mail was Sent")<br />
<br />
'You should always do this with CDONTS.<br />
set objMail = nothing<br />
<br />
<br />
End If<br />
%><br />
<br />
<form method="post" id=form1 name=form1><br />
Enter your email address:<br><br />
<input type="text" name="txtEmail" value="<%=Request.Form("txtEmail")%>"><br />
<input type="text" name="name" value="<% =name %>"><br />
<p><br />
<input type="submit" value="Send me an Email with an Attachment!" id=submit1 name=submit1><br />
</form><br />
<br />
Any help would be great thanks
|
|
|
|
|
You should first encode the name because http always convert special symbol like it convert blank space into + sign and also more .
First use server.encode(name)
then pass it as query string
then in the next page first use
name = server.decode(name)
If it not work then
make own symbol like + to replace blank from querystring
and another symbol from the query string
and then in the next page replace these symbol again .
|
|
|
|
|
i find the code below could call cmd in the window and run the command notepad.exe to start the notepad.
<br />
import java.lang.System;<br />
import java.lang.Runtime;<br />
import java.io.IOException;<br />
public class test<br />
{<br />
public static void main(String args[]) throws IOException <br />
{<br />
Runtime load = Runtime.getRuntime();<br />
load.exec("C:\\windows\\notepad.exe");<br />
}<br />
}
so i want to know how to call the cmd to run the java command
java java_class_name 1 1 3 6 hhh.txt uuu.txt
i have try load.exec("java java_class_name 1 1 3 6 hhh.txt uuu.txt")
it is not work
kei
|
|
|
|
|
Hi all:
I need to control the vertical scroll position of a page when the user hits an arrow. The problem is that the page is like a list or text area control and the behavior should be like this: only when I'm at the bottom of this list the scroll should go down and not at every hit of the arrow. Every item of the list is a DIV element, so I've intended to scroll at a certain position depending on the DIV viewed but I can't manage to work it. How can I know if the DIV is within the viewed area?
I dont't know if that's the best way to do it so if you think there's a better way it'll be welcome.
Thanks,
Marc
|
|
|
|
|
I have a search page that has a form that only works half way when I use "GET" and the other half only works when I use "POST"... does anyone have any ideas???
Thanks in advance
|
|
|
|
|
I'm not sure I know what your saying...but...
If you mean some of your POST/GET variables are not being submitted to the server...
You should ask your hosting company or check the config's to see if maybe there is an option which limits the amount of GET/POST data allowed to be submitted - on the server side (ie: PHP you may want to look at the php.ini)
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|