|
Hi everyone
I've been developing a tab navigation lately using XML. Now I'm trying to
put all things together. I have 2 nested tabs.I would like to know what is
the best way to assembly when I click on a button on the tab the content
will appear below. There are mutiple ways out there, I would like to know
the most efficient way of your solution
Thanks
|
|
|
|
|
Use hidden DIVs and with JavaScript set them to show or hide as needed. Use the display: none; property rather than visibility: hidden; though as the former will then not take up any space.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
I have done the same with TABLES and content for every TAB was included in a TR of the TABLE. Then set the DISPLAY style of each TR to either BLOCK or NONE.
If I was to do somehting like this again I would use DIVs instead as the other fellow CPian suggested...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
I do it by having named div elements with style="display:none" or style="display:block" as appropriate.
You will put all the tab stuff inside the divs
Enjoy
|
|
|
|
|
Hello
this is sam, and I have a big problem with ASP !!!!
I want to retrieve data from a database and then send this data to a url as a query string.
ex: http://77.125.192.120:1428/Recieve.asp?tel=20123335357&Msg=Misssshhhhh%20this%20is%20this?&CC=20&user=SMS&pass=Ed3kWKad&enc=1
enc:
Encoding: if message is ucs2 =0;
if message is plain Text =1
and if the Msg is in arabic so it is encoded and then sent.
Please help me with this. how can i do it in VBScript, ADO ?
I want the application to be run without stopping, to send data to the url without stopping. any new data comes, is sent to the url directly.
yours
sam.
Sam2004
|
|
|
|
|
Since it seems like you are using "Classic" ASP and ADO, the solutions is something like the following:
Dim httpRequest, url, response, request
url = "http://www.mydomain.com/mypage.asp"
Set httpRequest = Server.CreateObject("WinHttp.WinHttpRequest.5")
httpRequest.Open "PUT", url, False
' declaring and opening a new connection and recordset omitted
Do While Not rs.EOF()
request = "myvar1=" & rs("field1") & "&myvar2=" & rs("field2")
httpRequest.Send request
response = HttpReq.ResponseText
rs.MoveNext()
Loop
Of course, if you were using the .NET Framework, you could use HttpWebResponse and HttpWebRequest to do the same thing.
You can look up "WinHTTP Interfaces" on MSDN for more information.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hi,
I am having a weird problem which I suspect is a bug in the framework or VS.NET. Maybe some of you know how to fix this.
I have a project containing one .ASMX file and three datasets. However, when I fetch the XML schema of the webservice, only 2 of the 3 datasets show up!
The dataset that doesn't show up in the schema is the one I added last. I hear you... yes I did recompile, MANY times. I rebooted, restarted IIS. It keeps returning the schema of only the first 2 datasets.
Anyone has an idea of what the problem might be? I had a similar problem a few weeks ago... the schema always returned an OLD version of my dataset.
Your help is very much appreciated.
Thanks!
Carl
|
|
|
|
|
I have an old MFC app that I want to communicate with via classic ASP and later in the year, with ASP.NET. What's the best way to have my ASP page send messages to my MFC-EXE? I've tried shared memory and posting Windows messages to the MFC-EXE's window (or to all windows). Tried pipes as well. I gather that the ASP page is running in protected space by IIS and so there is a permission problem. What's the sanctioned or method of choice for such communication? I didn't want to go to sockets as I'm on the same machine. The MFC-EXE is running on the same computer as the ASP pages (under local IIS).
I was thinking about a named data section in a DLL shared by an IIS plug-in and my MFC-EXE. Also, what about doing an out of process OLE/COM server that I could get access to from the ASP page that was embedded in my MFC-EXE?? I have never done the later.
Any ideas or pointers appreciated.
VinMan
|
|
|
|
|
Hi, just been trying to create a table using the createElement method. Only trouble is it doesn't seem to be enough for it to work, i've only included the main , a , and 3 's. I've also set through the script all the peoperties needed.
Basically, is there a reason it's not displaying ¿
|
|
|
|
|
|
2 things, please.
1. What is happening, an error message or just zilch?
2. Post the code so we can disect and study it then provide you with the answer you seek.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
There's zilch happening, although i scanned the doc's children and found they had been created, or there were a few div tags there anywho.
var chldT = document.createElement( "" ) ;
var chldR = document.createElement( "" ) ;
var chldC = document.createElement( "" ) ;
document.body.appendChild( chldT ) ;
chldT.appendChild( chldR ) ;
chldR.appendChild( chldC ) ;
chldC.innerText = "hello world!" ; |
|
|
|
|
|
This is bizarre, but to use appendChild and createElement for creating tables in Internet Explorer you must include a tbody .
So you need to do:
var chldT = document.createElement( "table" ) ;
var chldB = document.createElement( "tbody" ) ;
var chldR = document.createElement( "tr" ) ;
var chldC = document.createElement( "td" ) ;
chldC.innerText = "hello world!" ;
chldR.appendChild( chldC ) ;
chldB.appendChild( chldR ) ;
chldT.appendChild( chldB ) ;
document.body.appendChild( chldT ) ;
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Wh00ps, forgot about that. Thats a pretty good way of doing it btw, create it all in the memory and then apply the whole table. Like it.
|
|
|
|
|
Having said that i've just noticed sorry, IE has specific functions to create table's, using insertRow insertCell etc.
|
|
|
|
|
Hi
I have an IFrame element with src attribute set to the url of an ASP page..
this I want this IFrame to be resized so all the text in the asp page can appear WITHOUT scroll bars ..
I there a way to do this ?
|
|
|
|
|
Can you not turn off the scroll?
|
|
|
|
|
When I set Scrolling = no the frame does not expand to fit the containded page.
|
|
|
|
|
If i'm understanding you right u want the to resize when the page is updated to the width & height of the new page?
One way you can do this is to get the width/height of all the objects displayed within the page and then work out the total. You might not be able to do it so well with JavaScript but VBScript will return more info, this also depends on the browser u r using.
|
|
|
|
|
How do I change the color of the button that comes with "File Field" Html control.
Thanks.
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
you can do it through css
thankx
|
|
|
|
|
Unfortuanately you cannot. They are pretty strict about letting you fiddle with the file input to stop dodgy okes from sniping files off your machine. Why they won't let you style it I am not so sure.
You can modify the textbox portion of it, but not the button.
[Edit]
Actually, I lie. You can, to a degree. background-color for instance does not work on the button bit but border does. Bit of pot luck.
[/Edit]
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Hi Paul,
I just found a dirty way to do this. I put a normal button, a textbox and a file input field. Then put some java script and managed to call the file input's click event from the button's click event, so when I clicked the button the open dialog box would appear, and it worked!. Then the getting the text in to the text box from file input was easy. Now I can do what ever the decorations to the poor button
Thanks for your help and your time.
UB
You may stop this individual, but you can't stop us all... after all, we're all alike. +++Mentor+++
|
|
|
|
|
What does “?” mean in eg: www.hammarby.se/bajen?blubblub
I think I need it but don’t know how to handle it.
Pleased for article suggestions.
...and justice for all
APe
|
|
|
|
|
It's a set of parameters. For example, here on CP the bit that says forumid=1640 in the address bar is indicating to the asp page user_reply.asp that we want to use the forum 1640 (which is Web Development). The ? symbol indicates the start of the parameters, the & symbol is used to separate parameters, and = separates the name of a parameter from it's value.
Some pages (like what you describe) only need one parameter, so sometimes just the value is passed in after the ?.
In ASP.NET, see Request.QueryString for starters on how to retrieve this information.
Otherwise, see the reference manuals for the web tools you are using. If you're using straight HTML, then you're probably out of luck
Ian Darling
"The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt." - Bertrand Russell
|
|
|
|
|
Realy thanks!
Luckily I’m using ASP.NET
I look at: Request.QueryString for info - Thanks
...and justice for all
APe
|
|
|
|