[wdvltalk] RE: drag and drop?
I can't recall where this code came from, but this allows any HTML element that is given the Class="Drag" to be dragged around the page: HTH, Adam .drag {position:relative;cursor:hand } var dragapproved=false var z,x,y function move(){ if (event.button==1&&dragapproved){ z.style.pixelLeft=temp1+event.clientX-x z.style.pixelTop=temp2+event.clientY-y return false } } function drags(){ if (!document.all) return if (event.srcElement.className=="drag"){ dragapproved=true z=event.srcElement temp1=z.style.pixelLeft temp2=z.style.pixelTop x=event.clientX y=event.clientY document.onmousemove=move } } document.onmousedown=drags document.onmouseup=new Function("dragapproved=false") //--> -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 09 January 2003 10:59 To: [EMAIL PROTECTED] Subject: [wdvltalk] drag and drop? Hi list, We've got a table that shows bookings for our various rooms: http://laughing-buddha.net/tmp/wj-bookings.gif At the moment, if you want to move a booking, you have to cancel it and re-book it. It'd be *really* nice if there were some way for users to drag their booking to where they wanted it. Any ideas? Any way of doing this easily? It can be IE6 only, if that makes any difference. Cheers Jon Witan Jardine 13 Southampton Place London WC1A 2AL Tel: 020 7404 4004 Please visit us on the Internet: http://www.witanjardine.co.uk/ 'The information included in this e-mail is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege of confidentiality. If you have received this email in error, please forward it to [EMAIL PROTECTED], thank you.' * The WDVL Discussion List from WDVL.COM * To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: ASP FSO
Line feeds gone missing: Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("c:\test.txt", True) a.WriteLine("This is a test.") a.Close Adam -Original Message- From: Adam Cork [mailto:[EMAIL PROTECTED]] Sent: 09 December 2002 13:57 To: [EMAIL PROTECTED] Subject: [wdvltalk] RE: ASP FSO OK, would have made sence, Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.CreateTextFile("c:\test.txt", True) a.WriteLine("This is a test.") a.Close straight from the help file. Running Win2K, IIS Cheers, Adam - Original Message - From: "J.R. Pitts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 1:46 PM Subject: [wdvltalk] RE: ASP FSO Probably is something simple. But how are we to know? *post your code!* J.R. -Original Message- From: Adam Cork [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:07 AM To: [EMAIL PROTECTED] Subject: [wdvltalk] ASP FSO Hi list, Recently there was some mention of the FileSystemObject. I'm trying to run a script to create a file, i've just taken the example code from the help file to create a text file and write a single line out to it, just to get it working, but when i run the page all it does is sit there loading the page for ages. I'm assuming there's got to be something simple. Any ideas? Cheers, Adam The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: ASP or VBscript problem
FSO Example: If you have an HTML file that contains, say [name] in the exact place you want the name to appear, then you can call GenerateOutputHtml() to read the html file And return the string of html to write to the response Adam Dim fso ' handy to keep a global refernece to this Function GenerateOutputHtml() Dim InHTML, FilePath, OutHTML, Name FilePath = "" Set fso = CreateObject("Scripting.FileSystemObject") InHTML = ReadFileIntoString(FilePath) Name = "Your name to appear in the output HTML" GenerateOutputHtml = Replace(InHTML, "[name]", Name) End Function Private Function ReadFileIntoString(FilePath) Dim TStream, Out If fso.FileExists(FilePath) Then Set TStream = fso.OpenTextFile(FilePath)' returns a TextStream object If Not TStream Is Nothing Then Out = TStream.ReadAll TStream.Close End If End If ReadFileIntoString = Out End Function -Original Message- From: Mark Groen [mailto:[EMAIL PROTECTED]] Sent: 05 December 2002 16:23 To: [EMAIL PROTECTED] Subject: [wdvltalk] RE: ASP or VBscript problem On December 05, 2002 at 10:59, Gerenday, Perry (P.) wrote: > -Original Message- > From: Ben Joyce [mailto:[EMAIL PROTECTED]] > > > > failing that, build your HTML pages as templates and read > > them in using > > the FSO, replacing 'fields' in the mark-up, such [this] and > > [that], with > > real data at run-time. > > Ben, > > Greenhorn Newbie Alert > > I have no idea what you just said. What's an FSO? FSO is an acronym for FileSystemObject. It contains methods and properties that allow you to create, delete, gain information about, and generally manipulate drives, folders, and files. Context-Switching is a process runs on the CPU until it is context switched. Server-Side HTML is when you are using PHP, JAVA(JSP), ASP, etc. to display browser pages. HTH! Regards, Mark Groen MG Web Services Web Site Hosting and Development www.markgroen.com [EMAIL PROTECTED] 604-780-6917 * The WDVL Discussion List from WDVL.COM * To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: [OT] Surreptitious program installation
Try Belarc Advisor. It finds out everything about your pc. (Free for personal use only) http://www.belarc.com/free_download.html Adam -Original Message- From: Siobhan Thomas [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 10:32 To: [EMAIL PROTECTED] Subject: [wdvltalk] [OT] Surreptitious program installation Is there any way to check for recent program installation that doesn't show up in windows ad/remove programs or doesn't appear in the task list? Also, is it possible to order by date? Is there any good program to scan for spyware (not as in adware spyware but as in back office stuff)? Thanks sio The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] Re: CSS selector help - aargh
Have a quick gander at the CSS level 2 spec below: The upshot is that you cant do what you want. HR + P {...css stuff...} selects the shown below, but you can only select a tag that is preceded another tag, not a tag that preceds another tag. I don't know which browsers support this though. style this don't style this one two don't style this HTH, Adam Cascading Style Sheets, level 2 CSS2 Specification (http://www.w3.org/TR/REC-CSS2) 5.7 Adjacent sibling selectors Adjacent sibling selectors have the following syntax: E1 + E2, where E2 is the subject of the selector. The selector matches if E1 and E2 share the same parent in the document tree and E1 immediately precedes E2. In some contexts, adjacent elements generate formatting objects whose presentation is handled automatically (e.g., collapsing vertical margins between adjacent boxes). The "+" selector allows authors to specify additional style to adjacent elements. Example(s): Thus, the following rule states that when a P element immediately follows a MATH element, it should not be indented: MATH + P { text-indent: 0 } The next example reduces the vertical space separating an H1 and an H2 that immediately follows it: H1 + H2 { margin-top: -5mm } Example(s): The following rule is similar to the one in the previous example, except that it adds an attribute selector. Thus, special formatting only occurs when H1 has class="opener": H1.opener + H2 { margin-top: -5mm } -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 15 October 2002 20:58 To: [EMAIL PROTECTED] Subject: [wdvltalk] Re: CSS selector help - aargh Oh, this is getting silly. I'm sorry. > > I need a rule that affects any that is > > followed immediately by a . > > Make the first of any red: Alert readers will notice that's wrong at least twice. Obviously, I'm not feeling too alert right now ;-) Let me try again. I need to style any that is followed by a : don't style this style this one two don't style this If anyone can post a selector for this I will be very grateful. I look forward to reading it when I get out of bed tomorrow morning :-) Cheers Jon * The WDVL Discussion List from WDVL.COM * To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: [.asp] Attach docs with forms
Try this: HTH Adam -Original Message- From: Casey Crookston [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 15:55 To: [EMAIL PROTECTED] Subject: [wdvltalk] [.asp] Attach docs with forms Okay, ever seen the little tools that allow you to attach a document and submit it with a form? They have a little "Browse" button that let's you select the file you want off your own hard drive... Right? How is this done? Server-side? Client-side? I'm using .asp/IIS. Many thanks in advance, Casey The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: XML Query
Hi, The ' Node.setAttribute "height", Node.getAttribute("age")' uses getAttribute to read the value of the age attribute then the setAttribute method will create a new attribute called "height" with this value, or if a "height" attribute already exists it will change the value. The "age" attribute is only removed (using removeAttribute) once the new attribute is created. If you want to change element names the best way is to use XSLT transformations as in my previous reply, but it can be done using the DOM as follows: ' Renames pradeep nodes to be called newpradeep For Each Node In PraDeepDom.SelectNodes("//pradeep") Set NewNode = Node.ownerDocument.createElement("newpradeep") ' Move across all child elements (plus all their content) For Each Child In Node.childNodes NewNode.appendChild Child Next ' Move across all attributes For Each Child In Node.attributes ' Attributes must be removed before being added elsewhere NewNode.setAttributeNode Node.removeAttributeNode(Child) Next ' Dump this 'pradeep' and replace it with 'newpradeep' Node.ParentNode.replaceChild NewNode, Node Next Adam -Original Message- From: Pradeep [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 11:30 To: [EMAIL PROTECTED] Subject: XML Query for U Hi Adam, In this u have clearly removed the attribute but not added the new attribute in place of it. Can u please tell me how to do that. Also please do tell me how can i rename the elements too. But one thing to be seen that the content is not disturbed both in and out of the attribute. Thanks, Pradeep Dobhal - Original Message - From: "Adam Blair" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 30, 2002 3:36 PM Subject: [wdvltalk] RE: XML Query > OK, here's another way, not using stylesheets bu just using the DOM > > Sub Main() > > Dim PraDeepDom > Set PraDeepDom = CreateObject("MSXML.DomDocument") > PraDeepDom.Load "C:\PraDeep.xml"' > Load in the original > > For Each Node In PraDeepDom.SelectNodes("//pradeep[@age]")' > Find all pradeep nodes that have an age attribute > Node.setAttribute "height", Node.getAttribute("age") ' Create > a new attribute called height with the value of age > Node.removeAttribute "age" > ' Get rid of the age attribute > Next > > PraDeepDom.Save "C:\PraDeepNEW.xml" ' > PraDeepDom is now all changed > > End Sub > > > Adam > > -Original Message- > From: Pradeep [mailto:[EMAIL PROTECTED]] > Sent: 30 September 2002 06:50 > To: [EMAIL PROTECTED] > Subject: [wdvltalk] XML Query > > > Hi All, > > I wanna chage the attribute name (leaving it's value as such) of a > xml element. Can anyone of u please suggest me any possibe way how > this can be done. The xml file is loaded into the XML dom object. > > example. > > I have > > > need to changed to > > > Thanks, > Pradeep Dobhal > > > > > > * The WDVL Discussion List from WDVL.COM * > To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] >Send Your Posts To: [EMAIL PROTECTED] > To change subscription settings to the wdvltalk digest version: > http://wdvl.internet.com/WDVL/Forum/#sub > > http://www.wdvl.com ___ > > You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% > > . The WDVL Discussion List from WDVL.COM . > To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] >Send Your Posts To: [EMAIL PROTECTED] > To change subscription settings to the wdvltalk digest version: > http://wdvl.internet.com/WDVL/Forum/#sub > > http://www.wdvl.com ___ > > You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > %%email.unsub%% > The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: XML Query
OK, here's another way, not using stylesheets bu just using the DOM Sub Main() Dim PraDeepDom Set PraDeepDom = CreateObject("MSXML.DomDocument") PraDeepDom.Load "C:\PraDeep.xml"' Load in the original For Each Node In PraDeepDom.SelectNodes("//pradeep[@age]") ' Find all pradeep nodes that have an age attribute Node.setAttribute "height", Node.getAttribute("age") ' Create a new attribute called height with the value of age Node.removeAttribute "age" ' Get rid of the age attribute Next PraDeepDom.Save "C:\PraDeepNEW.xml" ' PraDeepDom is now all changed End Sub Adam -Original Message- From: Pradeep [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 06:50 To: [EMAIL PROTECTED] Subject: [wdvltalk] XML Query Hi All, I wanna chage the attribute name (leaving it's value as such) of a xml element. Can anyone of u please suggest me any possibe way how this can be done. The xml file is loaded into the XML dom object. example. I have need to changed to Thanks, Pradeep Dobhal * The WDVL Discussion List from WDVL.COM * To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]
[wdvltalk] RE: XML Query
A simple way is to use XSLT (XML Transformations) by using the following XSLT stylesheet: http://www.w3.org/1999/XSL/Transform";> How this is achieved depends on the context within which you are trying to do this (one-off conversion, server side process...) Adam -Original Message- From: Pradeep [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 06:50 To: [EMAIL PROTECTED] Subject: [wdvltalk] XML Query Hi All, I wanna chage the attribute name (leaving it's value as such) of a xml element. Can anyone of u please suggest me any possibe way how this can be done. The xml file is loaded into the XML dom object. example. I have need to changed to Thanks, Pradeep Dobhal * The WDVL Discussion List from WDVL.COM * To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% The WDVL Discussion List from WDVL.COM To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub http://www.wdvl.com ___ You are currently subscribed to wdvltalk as: archive@jab.org To unsubscribe send a blank email to [EMAIL PROTECTED]