|
hi all,
i have this crazy idea and now its got me stuck. Lets start from the beginning. i have a simple web page mixed with some javascript, but i need some data, lets say from a database of file. To solve this a created a .net web service that will, for arguments sake return "hello world!". Now how do i get it into my web page. The reason i've done it this way is because i can host the asp.net myself but provide only a few hours of coverage, but the web page will be hosted on linux system and will be on all the time.
for example this goes straight to the service, but how do i change it to bring data back and display it
<html>
<body>
<form action="http://localhost/WebService1/Service1.asmx/gethelloworld" method="POST">
<input type="submit" value="Enter"> </input>
</form>
</body>
</html>
this is a sample of the main web page:
<HTML>
<FORM>
<INPUT TYPE="" NAME="name" SIZE=50 MAXLENGTH=40 tabindex="1" id="name">
</form>
<script>
name="How do i get webservice data in here"
document.forms[0].name.value=name
</script>
</HTML>
there is however another way, if i could somehow activate the web service rather than going directly to it, then i could make the service create an xml file and read the data that way!, any suggestions on this would be greatly appreciated.
thanks
|
|
|
|
|
|
i have the following list defined:
<select onChange="alert('An Item is selected');">
<option selected >(NONE)</option>
<optgroup Label="Group1">
<option >Item1</option>
<option >Item2</option>
<option >Item3</option>
</optgroup>
<optgroup Label="Group2">
<option>Item4</option>
<option>Item5</option>
<option>Item6</option>
</optgroup>
</select>
When a user attempts to make a selection using the mouse scroll , the item right after the optgroup is not caught by the onchange event.How can i solve this problem?
|
|
|
|
|
hi all
so is there a control that will allow you to either
select from a dropdownlist but also let you type in
a NEW item on top? What control is that? Ive seen these on
websites.
I need my users to be able to select from the drop down, but
if the item of their choice doesnt exist, they can just type
it and hit "add" and it'll add to the wish list.
Or do I need to add a separate textbox and imitate this behavior?
thanks
Moazzam
|
|
|
|
|
|
|
I am developing asp.net1.1 application
I have hug number of records in DB( SQLServer ) & want to show in a datagrid
There are thousands of records which need to transfer to client & client can sort & search
What is the best way to handle such type of situation
I am also using Ajax , when I use Ajax to call a function it lock the page until the all data is transfer to client , that’s not good
Did I use xml file to send on client & from xml file show data to client
or if there is any good solution plz....
I will be really thankful
Irfan
|
|
|
|
|
I have some serious css problems with IE
I have some styles nested like:
Box1.Blue
{
...
}
.Box1.Blue .Caption
{
..some completely different background image for blue box1 caption..
}
.Box2.Blue
{
...
}
.Box2.Blue .Caption
{
..background image for blue box2 caption..
}
and the html looks like:
<div class="Box1 Blue">
<div class="Caption">abc</div>
some content
</div>
and the same html for box2 style
this works all fine in FF, opera, NS but not in IE
in IE both the ".Caption" styles get the _same_ background image.
other attribs works though , eg if the captions has different bg colors.
but image seems shared for every element with the same name.. no matter what parent style it belongs to.
so is this a known bug and is there some workaround for it?
or do i have to make funny names like "Box1BlueCaption" ?
-- modified at 7:33 Friday 19th May, 2006
|
|
|
|
|
On the webpage you are viewing this, why not save the document (complete) to you hard drive. Navigate to where you have saved it and locate the global.css file and look at how it is constructed. You will note that there are no duplicate entries. Also remember that styles are inheritable.
Consequently, when you design css style sheets for your own use then do not try to confuse Internet Explorer.
In other words, dont name
Roger J wrote: .Box1.Blue .Caption
and
Roger J wrote: .Box2.Blue .Caption
as this may cause the confusion.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Good day to all.
Here is some html I've been trying to access using JavaScript
<div class="batchUpload" id="hideableDiv" style="display:none">
<form name="batchUpload">
<table>
<tr>
<td>Files to be uploaded.</td>
<td><input type="file" name="uploadFiles" maxlength="10"></td>
</tr>
<tr>
<td><input type="reset" title="Reset"><input type="submit" title="Submit"></td>
</tr>
</table>
</form>
</div>
Can anyone tell me how I can access the following div in JavaScript? I want to change its style.I've tried the following, but it doesn't work:
.......
try
{
this.document.div.addMemberDiv.hideableDiv.style.display="table";
}
.........
-- modified at 15:41 Thursday 18th May, 2006
|
|
|
|
|
Use the getElementById method to locate elements in the document. The value 'table' is not valid for the display style.
document.getElementById('hideableDiv').style.dislay = 'block';
---
b { font-weight: normal; }
|
|
|
|
|
Thanks I tried it, but it didn't work. Any other ideas?
Is there anything like a "getElementByClass()" ?
|
|
|
|
|
Change "dislay" to "display" and try again.
LiquidE_SA wrote: Is there anything like a "getElementByClass()" ?
No.
---
b { font-weight: normal; }
|
|
|
|
|
I was wondering if it is possible to have an image wait to be loaded until the user clicked on a link? If this can be done could someone point me in the right direction on how to get this done. I was thinking of AJAX but I am not to familiar with AJAX. I am looking to get this done with JavaScript, CSS, and HTML.
Thanks,
Chad
|
|
|
|
|
chaddolan wrote: I was wondering if it is possible to have an image wait to be loaded until the user clicked on a link? If this can be done could someone point me in the right direction on how to get this done.
Sure. Try something like this:
<img id="delayload" src="bogusUrl" style="display:none;">
<a href="#"
onclick="document.getElementById('delayload').src = 'realImageUrl.jpg';return false;">
Load Image
</a>
----
|
|
|
|
|
Thanks for the help.
Chad
|
|
|
|
|
Hi all,
I am building an application with a main screen (lets call it screen A), which contains a frame hosting another page (lets call it screen B). The two screens contain much javascript.The problem is that when i do something in A,it should excute some javascript found in B. I did the reverse without any problem but l'm pretty in a hassle with th is one.Can anyone please help me?
thanks and regards
Krugger©
|
|
|
|
|
Hi,
I have been struggling to find a suitable div layout that is fixed, but haven't been successful for the last 5 weeks. I got thos XHTML starter kits from microsoft, which actually work very well, but the footer is just beneath the centre column.
Is there any chance that someone can help me make the footer expand across all 3 coloumns (left, centre, and right). Please let me know, then I can tell you what starter kit is.
If anyone knows where I can find a suitable layout that works well in all browsers, please let me know.
Regards,
ma se
|
|
|
|
|
Hy guys!!
I've been looking almost forever for a suitable div layout, and I am working on one ast the moment, but the colours don't want to go all the way down. I need the colours to go all the way down, irrespective of what coloumn is the longest. It works fine in IE 6, but Mozilla and Opera seems to give problems.
Please can someone take a look please. The page is here[^].
Regards,
ma se
|
|
|
|
|
If the rendering of the page differs between IE 6 and other browsers, it's almost always the other browsers that render the page correctly.
IE 6 incorrectly expands any element to the size of it's content, even when the standard says it shouldn't. This is what is happening in your layout.
---
b { font-weight: normal; }
|
|
|
|
|
Can you maybe help me in getting the column colours down to the longest height please?
|
|
|
|
|
Hi folks,
I have this function. The nestcape version works fine but in IE it will toggle to on but not back again. Any ideas?
element is the name of the iframe in my testing (id and name attribute both set to 'edit')
function ToggleEditMode(element) {
if (document.all) {
if (frames[element].document.designMode=="on") {
frames[element].document.designMode="off";
} else {
frames[element].document.designMode="on";
}
} else {
if (document.getElementById(element).contentDocument.designMode=="on") {
document.getElementById(element).contentDocument.designMode="off";
} else {
document.getElementById(element).contentDocument.designMode="on";
}
}
return;
}
Thanks
|
|
|
|
|
Hello all,
can anyone tell me the exaple of making the html code for IE of windows and MAC IE.
Vinayak J. Chauhan
|
|
|
|
|
What?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hello,
Actually i had made a website that is using IE of Windows,It works perfectly. Now i have to run it on IE of MAC also. but when i am opening my website on MAC's IE it shows totally wrong. means all the formatting displays too badly. and also the hidden controls are appears in MAC IE .
I think, for that we have to make some changes in the HTML tags of the .aspx pages. so if u can give me any example or any link that will show me the diffrence of code for MAC IE and Window IE , it will be great help for me .
Thanks & Regards...
Vinayak J. Chauhan
|
|
|
|