Jump to content

bairdb

Members
  • Content Count

    40
  • Joined

  • Last visited

Community Reputation

0 Neutral

About bairdb

  • Rank
    Newbie

Previous Fields

  • Languages
    ASP, HTML DOM, Javascript, Actionscript, PHP, XML

Contact Methods

  • Website URL
    http://
  • ICQ
    0
  1. Try to give the scrollbar a variable name. dScrollbar = this.createClassObject(mx.controls.UIScrollBar,dSc rollbar,20) and then instead of useing this[dScrollbar]. just call the scrollbar by dScrollbar.
  2. bairdb

    sending flash variable

    If you are using actionscript 2.0 you can use the LoadVars to send a variable to your page. var send_lv:LoadVars = new LoadVars();send_lv.variable = variable Value;send_lv.send("--The URL of the page you want to send to--", "_blank", "POST");
  3. I would break out your print styles and pages styles into two .css files. Then when you are linking the files just add this. <link type="text/css" rel="stylesheet" href="vcwb.css"><link type="text/css" rel="stylesheet" href="print.css" media="print">
  4. bairdb

    XML ASP SOAP

    The meter number has to be obtained from a fedex rep. As well as the gateway and url to the fedex server.Below is how you build the xml string. Just fill in the correct data needed for the xml that goes with the type of transaction you are working with. You can find the xml in one of the FedEx documents on there site. TS = "<?xml version=""1.0"" encoding=""UTF-8"" ?>" & _"<FDXEmailLabelRequest xmlns:api=""http://www.fedex.com/fsmapi"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""FDXEmailLabelRequest.xsd"">" & _"<RequestHeader>" & _"<CustomerTransactionIdentifier>Email Label Request</CustomerTransactionIdentifier>" & _"<AccountNumber>" & AccountNumber & "</AccountNumber>" & _"<MeterNumber>" & MeterNumber & "</MeterNumber>" & _"<CarrierCode>" & CarrierCode & "</CarrierCode>" & _"</RequestHeader>" &_ "<URLExpirationDate>" & URLExpirationDate & "</URLExpirationDate>" & _"<URLNotificationE-MailAddress>" & OriginEmail & "</URLNotificationE-MailAddress>" & _"<MerchantPhoneNumber>" & MerchantPhoneNumber & "</MerchantPhoneNumber>" & _"<Service>" & Service & "</Service>" & _"<Packaging>" & Packaging & "</Packaging>" & _"<WeightUnits>" & WeightUnits & "</WeightUnits>" & _"<CurrencyCode>" & CurrencyCode & "</CurrencyCode>" & _"<Origin>" & _"<Contact>" & _"<PersonName>" & OriginPersonName & "</PersonName>" & _CompName & _"<PhoneNumber>" & OriginPhoneNumber & "</PhoneNumber>" & _"<E-MailAddress>" & OriginEmail & "</E-MailAddress>" & _"</Contact>" & _"<Address>" & _"<Line1>" & OriginAddress1 & "</Line1>" & _Address2 & _"<City>" & OriginCity & "</City>" & _"<StateOrProvinceCode>"& OriginState &"</StateOrProvinceCode>" & _"<PostalCode>" & OriginZip & "</PostalCode>" & _"<CountryCode>"& OriginCountryCode &"</CountryCode>" & _"</Address>" & _"</Origin>" & _"<Destination>" & _"<Contact>" & _"<PersonName>" & DestinationPersonName & "</PersonName>" & _"<CompanyName>" & DestinationCompanyName & "</CompanyName>" & _"<PhoneNumber>" & DestinationPhoneNumber & "</PhoneNumber>" & _"</Contact>" & _"<Address>" & _"<Line1>" & DestinationAddress1 & "</Line1>" & _"<Line2>" & DestinationAddress2 & "</Line2>" & _"<City>" & DestinationCity & "</City>" & _"<StateOrProvinceCode>" & DestinationState & "</StateOrProvinceCode>" & _"<PostalCode>" & DestinationZip & "</PostalCode>" & _"<CountryCode>" & DestinationCountryCode & "</CountryCode>" & _"</Address>" & _"</Destination>" & _"<Payment>" & _"<PayorType>SENDER</PayorType>" & _"<Payor>" & _"<AccountNumber></AccountNumber>" & _"</Payor>" & _"</Payment>" & _"<DimensionsUnits>IN</DimensionsUnits>" & _"<Package>" & _"<Weight>1.0</Weight>" & _"<DeclaredValue>100.00</DeclaredValue>" & _"<ItemDescription>Books</ItemDescription>" & _"</Package> " & _"</FDXEmailLabelRequest>" Then the code below will send it to the fedex server, recieve a response back from the server and then send it to a page to process the xml and then send it back to display from the middle page. ------------THIS CODE SENDS THE STRING FROM ABOVE----------------set oXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")URL = "[b]the url to the fedex gateway[/b]"oXMLHTTP.Open "POST",URL,"false"oXMLHTTP.SetRequestHeader "Referer"oXMLHTTP.setRequestHeader "Host", "[b]fedex gateway[/b]"oXMLHTTP.setRequestHeader "Accept", "image/jpeg,image/pjpeg, text/plain, text/html, */*"oXMLHTTP.setRequestHeader "Content-Type", "text/xml"oXMLHTTP.setRequestHeader "Content-Length", cStr(len(TS))oXMLHTTP.send(TS)set responseXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")ProcessingURL = "[b]a page you create to process the xml[/b]"responseData = oXMLHTTP.responseTextresponseXMLHTTP.Open "POST", ProcessingURL ,"false"responseXMLHTTP.setRequestHeader "Content-Type", "text/xml"responseXMLHTTP.send(responseData) This code below is the page that you will send the xml data to to process it. It isn't exactly what you will need but might give you a clue. Insert the url for this page in the ProcessingURL in the code above. Set xmlDoc = CreateObject("MSXML2.DOMDocument")xmlDoc.async = falsexmlDoc.setProperty "ServerHTTPRequest", TruexmlDoc.load(request)set theLength = xmlDoc.getElementsByTagName("ReplyHeader")Set TransIden = xmlDoc.getElementsByTagName("CustomerTransactionIdentifier")if xmlDoc.getElementsByTagName("CustomerTransactionIdentifier").length = 0 thenfor each x in xmldoc.documentElement.childNodes response.Write(x.text) nextfor i = 0 to theLength.length - 1Response.Write("Label: ")Response.Write(TransIden(0).text & "<br />" & vbCrLf)nextfor each x in xmldoc.documentElement.childNodes if x.NodeName = "URL" then URL=x.textnextResponse.Write("URL: ")response.write "<a href=""" & URL & """>" & URL & "</a>"response.write("<br>")for each x in xmldoc.documentElement.childNodes if x.NodeName = "RequestTimestamp" then TimeStamp=x.textnextResponse.Write("Time Stamp: ")response.write(TimeStamp)response.write("<br>")for each x in xmldoc.documentElement.childNodes if x.NodeName = "UserID" then ID=x.textnextResponse.Write("User ID: ")response.write(ID)response.write("<br>")for each x in xmldoc.documentElement.childNodes if x.NodeName = "Password" then Password=x.textnextResponse.Write("Password: ")response.write(Password)response.write("<br>")set PackageLength = xmlDoc.getElementsByTagName("Package")Set TrackNumber = xmlDoc.getElementsByTagName("TrackingNumber")for x = 0 to PackageLength.length - 1Response.Write("Tracking Number: ")Response.Write(TrackNumber(x).text & "<br />" & vbCrLf)next I hope this helps, I know this is kind of confusing.
  5. bairdb

    XML ASP SOAP

    I have worked with fedex's process before and found that it is easiest to just use an xmlHTTP request using xml DOM. Below is a sample of what I used to complete this request. Hope this helps. set oXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")URL = "[b]the url to the fedex gateway[/b]"oXMLHTTP.Open "POST",URL,"false"oXMLHTTP.SetRequestHeader "Referer"oXMLHTTP.setRequestHeader "Host", "[b]fedex gateway[/b]"oXMLHTTP.setRequestHeader "Accept", "image/jpeg,image/pjpeg, text/plain, text/html, */*"oXMLHTTP.setRequestHeader "Content-Type", "text/xml"oXMLHTTP.setRequestHeader "Content-Length", cStr(len(TS))oXMLHTTP.send(TS)'TS = ""'response.Write(oXMLHTTP.responseText)'Send the response from the FedEx Server to be processedset responseXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")ProcessingURL = "[b]a page you create to process the xml[/b]"responseData = oXMLHTTP.responseTextresponseXMLHTTP.Open "POST", ProcessingURL ,"false"responseXMLHTTP.setRequestHeader "Content-Type", "text/xml"responseXMLHTTP.send(responseData)
  6. bairdb

    Content-Type problem

    I got this working by adding a second xmlHTTP request to handle the response from the FedEx server and send it as content-type xml.
  7. bairdb

    Content-Type problem

    I am working with FedEx's FSM Api. Basically I have set up an http request with ASP, it sends the content I need fine and it will return data if I use responseText. My problem is that if I try to use responseXML, it won't let me access the returned xml with xmlDom because FedEx's server is retruning their data with a content type of image/gif. Is there any way with asp to get around this, say change the content type of the returned data myself?
  8. bairdb

    Sending Email

    Is is possible to attach a file from a users local hard drive to an email that is being sent from the server?
  9. I guess what I am really asking is if you can connect to a mysql database without having a third party bridge or ODBC.net.
  10. I have been looking around to try and find a how to connect to a mysql database with asp.net but I am not finding any good examples. Can anyone help me with this problem?
  11. If you make a javascript function that changes the visibility of your div you can call that function from inside your flash movie.
  12. I am trying to create a dynamic graph with flash 8. I know how to apply values to my bars in my bar chart so they will resize depending on the value of my variables but I need my variables to be from an external source preferablly an asp page. Can anyone explain how to do this?
  13. bairdb

    Bending Lines

    All you need to do to bend lines is after you create the line, click on the black arrow tool. Put the cursor in the middle of the line until you see a little curve underneath the arrow, then all you have to do is just bend the line as much as you want.
  14. bairdb

    Movie Clip Help

    You will probably have to update the paths to your instanced movie clips inside your mc_nav movie clip.Here is an example, just add mc_nav before the movie clip that you are trying to access. mc_nav.your_mc.gotoAndPlay(1);
  15. bairdb

    flash button

    What you will have to do is make each button you want a different symbol, otherwise you are just editing the same symbol for each button.
×
×
  • Create New...