Ajax Login both secure and non secure url

Does anyone know if there is a way to use ajax to log a user in for both the non secure and secure url. Normally if you're submitting a log in form over the secure url with the non secure url in the referrer parameter it will log you in on both domains but not via ajax. Anyone have a good work around?

Here’s the code I’ve used…
{% if Settings.Site_Live -%}
{% assign redirectHTTP = "" -%}
{% assign redirectDOMAIN = Settings.Site_URL -%}
{% assign redirectEXTEND = "" -%}
{% else -%}
{% assign redirectHTTP = "http%3a%2f%2f" -%}
{% assign redirectDOMAIN = Settings.System_Name -%}
{% assign redirectEXTEND = ".fueldesign.co.nz" -%}
{% endif -%}
{% capture redirectURL -%}{{redirectHTTP}}{{redirectDOMAIN}}{{redirectEXTEND}}{% endcapture -%}
<form class="form--box escapeWorldSecureSystems" method="post" action="https://{{Settings.System_Name}}.worldsecuresystems.com/ZoneProcess.aspx?ZoneID=51&amp;Referrer={{ redirectURL}}&amp;OID=&amp;OTYPE=" data-parsley-validate>
Note: I have a Settings collection that has a lot of data from a Settings web app that controls a lot of settings for the website, such as “Site_Live” checkbox etc. this allows my sign-ins to be generic and editable site to site.
And here’s the development URL where I’m working on this. (don’t just my site during development stage lol)
http://astrolift.fueldesign.co.nz/ <http://astrolift.fueldesign.co.nz/>
username: dev
password: dev123
Hopt this gives you some inspiration.
Let us know if you get the ajax working.
Cheers guys

Similar Messages

  • Data source for application using both pooled and non pooled connections

    Hi guys.
    I am integrating Oracle's connection pooling into an existing application that had formerly used dbConnectionBroker. It looks like this task should be quite straightforward. However, for consistency, I would also like to replace other Connection logic within the application to use Oracle classes. This will involve using OracleDataSource to obtain a Connection object. ( without pooling ).
    So in this case, the application will use both pooled and non pooled Oracle connections. They will be connecting to the same database. The question I have is in regard to the use of data-sources.xml.
    Are there any special considerations for the required attribute values within data-sources.xml under this scenario ?
    Help will be greatly appreciated.
    Regards.
    Steve.

    Hi Steve -
    It should be feasible for you to define a single datasource using multiple location entries to indicate what sort of pooling behaviour you wish to use.
    If you lookup and use the "location" attribute, you will receive a javax.sql.DataSource object which will not provide connection pooling.
    If you lookup and use the "ejb-location" attribute you will receive a DataSource object that will support connection pooling operations.
    Note that this is using the emulated datasource approach, and transaction support is limited to a single resource (one database) for these datasources - you won't get 2PC support for transactions.
    If you need a transaction to span two separate resources (ie two databases in same tx) then you will need to use the non-emulated datasource approach.
    There is a chapter in the J2EE Services Guide which describes the datasource model we have with OC4J. This might provide you with some more useful information. See Chapter 11 - http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#1004903
    cheers
    -steve-

  • Does table MCHB (batch stocks) contain both valuated and non valuated stock

    Hello
    Does table MCHB (batch stocks) contain both valuated and non valuated stock?
    Is it possible that material has both valuated and non valuated stock for the same plant and storage location?
    Thanks

    Hi ,
    Most of your queries has been answered by Jurgen.
    1)Does valuated or non valuated is linked with valuation type? yes ..if the material is valuated then only there is valuation type.It is used for split valuation .
    2)Where can I see whether material is valuated on plant or not?
    to check the valuation level IMG >Enterprise Structure>Definition>Logistics - General>Define valuation level
    and to check value and quantity updation at plant level check
    IMG >Logistics - General>Material Master>Basic Settings>Material Types-->Define Attributes of Material Types
    3)Case1
    I want material A to be valuated at the plant without split valuation
    Case
    I want material B to have 0 value at plant
    go as Jurgen has recommanded in the previous post . for material B used different material type which is not valuated at that plant .
    Regards,
    Anupam

  • Both excisable and non-excisable items are in a same location (Warehouse)

    What will be best solution for the client (of SAP B1 2007 B PL7), those who have both excisable and non-excisable items are in a same location (Warehouse)...??...Is there any need to create two warehouses?... but how will be the excisable setting???

    Hii Das
    The best solution would be only to create two diffrent ware house for excisable and non excisable
    , to avoid unneccesary confusions, and to stay away from un avoidable errors
    Thanks
    Rizz

  • Both blocking and non-blocking io

    I'm wondering if this scenario is possible with the new nio classes:
    I have a caching server. Clients connect to the server and occasionally send requests for objects. I'd like to use the nio non-blocking APIs to detect that there is a read pending on a socket. However, once I detect this, I'd like to go into a blocking loop to process the request. After this done, I'd like to go back into non-blocking mode and wait for another request.
    It seems like this should be possible but the (woefully lacking) documentation isn't clear. Neither is the source code, apparently.
    I've got a test case working but I was hoping someone could validate for me that this is support behavior. It's done by waiting for the isReadable() key then calling socket.keyFor(selector).cancel(); and then socket.configureBlocking(true); The reads are then done in blocking mode until the request is done and then the socket is registered with the selector again.
    Thanks for any help on this.

    I have to ask why you would want to mix blocking and non-blocking I/O.
    The only reason you would (IMHO) want to use non-blocking I/O is in a highly concurrent system, to increase the maximum load a system can handle.
    The main reason you would want to use blocking I/O rather than non-blocking I/O would be to minimise the latency for a single request.
    Unfortunately, the two don't seem to mix together very well... by switching a thread to blocking, you decrease the latency for a single request, but increase latency for the other requests due to reduced resources available. Similarly, by switching to blocking, you are requiring a dedicated thread for that request, so limiting the number of concurrent requests that can be serviced.
    That is, it seems to me that using both blocking and non-blocking I/O introduces the weaknesses of both into the system, without gaining much of the benefits of either.
    The above aside, the method you gave looks like it would work as you expect, depending on what you are doing with thread creation/delegation. Did your test case work as expected?

  • Error writing file name which contain both English and non-English name

    Hello
    I have this simple vbscript code which suppose to write all file names in some directory to a text file
    Dim FSO
    Dim FileDirectory
    FileDirectory = "C:\temp"
    Dim FileList
    FileList = "list.txt"
    Dim Fname
    Set FSO = CreateObject("Scripting.FileSystemObject")
    set FileDirectory = FSO.GetFolder(FileDirectory)
    Set objFile = FSO.CreateTextFile(FileDirectory & "\" & FileList ,True)
    for each file in FileDirectory.files
    Fname = file.name
    objFile.Write( ChrW(34) & Fname & ChrW(34) & vbCrLf)
    objFile.Write( ChrW(34) & FileDirectory & "\" & Fname & ChrW(34) & vbCrLf)
    Next
    objFile.Close
    Everything goes fine while file names are in English but when some file name is non English or both  English with non English name (right to left languages) an error raised, so how to deal with this writing issue without changing the file name
    thanks in advance

    Thanks
    jrv for replying
    I tested you code but it didn't worked for me (works fine for English file names but doesn't work with right to left language )

  • Does Airport Express really communicate the same speed to both Mac and non-Mac devices?

    Okay, so to fully understand my situation, here's a briefing: Our old Netgear router was not pushing nearly the speeds we were paying for (we pay for 30 and were getting 10-15 max, usually much less). I recently got an iMac which means that all of my devices are now Apple made, so I decided to get an Airport Express to hopefully improve our wireless speeds. I set it up with the modem going in the WAN port and the old router attached to the LAN port so that it could still act as an ethernet hub for the few hard-wired devices knocking around. I set up both a network and a guest network, with our original one still active through the Netgear router.
    I get 45 Mbps from the new network on my iMac, but my roommate is only getting around 9. If he connects to the old one, he caps out at about 25. Is the wireless card in his PC just not capable of receiving more than that? He insists that since it's an Apple router it is not as compatable with non-Apple products. Interestingly, I get faster speeds on my iPhone from the guest network than I can from either the new or old main networks in our house.
    I know this is a really long question, but has anyone had this same problem? Any help would be greatly appreciated.
    Also: isn't the wireless speed of the old Netgear router still basically being pushed through the Airport Express, as it's the only thing connected directly to the modem? Are there any settings I can change to make everything run smoothly? If the PC, Android phones, etc can connect to the new network at the same speed as my Apple products, then we can eliminate the old network altogether if that will help.

    I think I answered my own question. I found this on the web:
    http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm
    Seems to suggest that using this third party exe to format it instead of windows inbuilt one will allow for partitions greater than 32GB. So this looks the way to go. And the 2GB limit per file is just for FAT16 not FAT32 apparently, but even if it is I only have a few iso/video files bigger than 2 gig so will just use a splitter on them.
    Hope this is useful to someone else

  • Poor visual quality connecting PB 15" to LCD tvs ( both HD and non HD)

    I can connect my 15 " G4 PB to both my LCD tvs - one is a 19" non HD Sharp Aquos, the other is a HD 37" Sharp Aquos-
    however, the visual quality is terrible- no matter what res I choose, mirrored, non- mirrored, - the fonts are fuzzy are totally illegible, making the operation essentially useless- even the screensavers and desktop pictures, icons etc. are very fuzzy
    I know I have the right wires, connections etc.- the on screen action follows exactly what is on my pb- for example, opening files, etc. but the visuals are horrible-
    I have browsed the posts but none seem to address this particular issue-
    any suggestions would be of help-

    OK, that's what I thought. Of all the ways you can connect to a TV or monitor, here is the quality from best to worst, from top to bottom:
    HDMI/DVI (computer display quality via digital)
    VGA (computer display quality via analog)
    S-Video/component (TV display quality via analog)
    Composite video (TV display quality via analog)
    You are using the second worst type of connection. Nice TVs often have VGA, DVI, or HDMI ports, which can carry the high, sharp resolutions produced by computers. S-Video is but a step up from VHS videotape quality and can only be fuzzy. Technically, S-Video is only around 640x480, a fraction of what your PowerBook screen can do.
    Check your TV ports again. If it has DVI, you can connect with your PowerBook's DVI port and the quality will be the best it possibly can. If there is no DVI but there is HDMI, then you can get a DVI-HDMI adapter and the quality should be just as high. If those two aren't available, look for VGA next, the quality will be good but not best. You can use the DVI-VGA adapter that came in the box with your PowerBook.
    Going out the S-Video port is a last resort. I have an old TV that only takes composite video through the S-Video port, if I use the S-Video-to-Composite adapter that came in the PowerBook box. Going all the way down to composite video is the absolute last resort of all. (I'm saving up for a new TV!) However, S-Video might be the only way to connect to an affordable non-HD set.
    One last thing: If you're mirroring the displays, the two resolutions must match. But if you're using extended desktop mode, the best resolutions to use are to set each display to its native resolution.

  • PDF file looks fine on the monitor, but paths bond in print in both PS and non-PS printers.

    Hi,
    I have a printing from Illustrator PDF problem. I've got Illy CS4 in which I have a rather huge file with a map and I'm tring to print pieces of the map. The PDF looks fine on the screen, but there are straigt lines on the print leading from one end to the other of two longest paths in the file.
    The problem occurs when saving through Scripts to PDF, Scripts to Poscript in Illustrator CS4 (with all updates) and CS5.1. I also went to a friend who is using CS5 and a PDF made with it also had paths bonded. The problem doesn't occur when saving the file to a low version of Illy, opening it in Corel X4 and printing from a PDF made in Corel. Funny enough I also made a multipage A3+ print of an older version of the file and two of the lines showed up on the first artboard, none on the middle one and only one line in the third one (see the photo below).
    Guys at the printers and more advanced Illustrator users I've asked for help said the've never seen anything like this and have no idea what the problem is. Accually, anyone I know hasn't got a clue of what the problem might be.
    Scans of test prints:
    PostScript printer: http://imageshack.us/photo/my-images/28/cs4postscriptprinter.jpg/
    Office non PostScript printer: http://imageshack.us/photo/my-images/11/cs4officeprinter.jpg/
    PDF made in Corel: http://imageshack.us/photo/my-images/404/illycs4tocoreltopdf.jpg/
    PDF from CS5: http://imageshack.us/photo/my-images/254/illycs5.jpg/
    Multipage PDF: http://imageshack.us/f/444/dscf0712wn.jpg/
    Any ideas of what I can do to print this properly? I'm pretty far from being an Illustrator expert and I ran out of ideas for fixing this and would really appreciate help...

    Hi Scott,
    Thanks for your reply. Print screen of the image I'm supposed to be getting in print, that is my PDF: http://imageshack.us/f/692/printscreenu.jpg/
    In the first jpg below are the only lines which are supposed to be printed (marked in red). The problem is that apart of what I'm supposed to be getting in print (print screen of the pdf above), I'm getting the lines I've marked in yellow in the second jpg below and which are not drawn in my .ai file neither in PDF. They show up in print only.
    PrintScreen of the whole .ai file: http://imageshack.us/f/833/wholefilewithartboard.jpg/
    PrintScreen of the whole .ai file with additional lines: http://imageshack.us/f/32/wholefilewithliens.jpg/

  • I installed Office:mac 2011 on my new iMac running 10.8.3 and discovoed my file transfer from my old macbook installed Office:mac 2088. Now I have both installed and none of the office apps work - I keep getting the same error message

    I recently purchased an iMac to replace my 2008 macbook.
    I used migration assitant to transfer all of my macbook files to the iMac. I noticed that I had the old 2008 version of Office:mac 2008 on the iMac and decided to install Office:mac 2011 which installed successfully.
    However, now I can't open excel or word or powwerpoint now using either 2008 or 2011.... I just get an error message saying there was an error and the app had to close. It offers to send a report to Microsoft.
    I tried moving Office:mac 2008 to trash but this didn't resolve the issue.
    Can anyone help (I am not a really sohpisticated user so be gentle)
    Thanks Dave

    Hello Dave,
    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office in any way. I suggest you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

  • Can I have both facing and non-facing pages in a document?

    I am trying to assemble a booklet with 11x17 spreads - some of these will be two facing 8.5x11 pages, but others will be a single 11x17 image, and would be better to treat them as a one page spread. We will be producing a hardcopy and an electronic version. The hastily sketched image below shows what I'm looking for. In the PDF version, the pages would be oriented as shown. In the booklet, the large images would be rotated to fit into the 8.5x11 booklet and viewed centerfold style.
    Is this a thing I can accomplish in one InDesign document, or will I need to produce separate versions for the digital & print editions?
    Thanks!!

    For the print version I would set up as an ordinary 8.5 x 11 facing pages file, and rotate the spread view for the pages that you need to see as 11 x 17 verticals, but you're going to need a second PDF for  the electronic version if you want to export spreads. I'd give exporting as PDF (Interactive) a try -- spreads is the default, and rotate the occasional page in Acrobat before distribution. That will give you spreads for everything, though, so if you want to have individual 8.5 x 11 pages, you'll need to export multiple PDFs, specifying ranges, with spreads selected or deselected, then combine them all into a single PDF in Acrobat for distribution.

  • How do I send a group message to both imessage and non imessage users and have replies only come back to me and not the group??

    Wish to setup a group message but don't want users to know its a group and only want replies to be sent to me not the group... How do I do this???

    BCC (?) [Blind Carbon Copy]    

  • Static variable and non-static

    I have a quick question. The following syntax compiles.
    private String t = key;
    private static String key = "key";
    But this doesn't compile.
    private String t = key;
    private String key = "key";
    Can anybody explain how it is treated in java compiler?
    Thanks.

    jverd wrote:
    doremifasollatido wrote:
    I understand that completely. I didn't say that the OP's version with static didn't work. I was just giving an alternative to show that you don't need static, if you change the order that the instance variables are declared.My problem with the underlined is that, while technically true, I can see where a newbie would take it as "oh, so that's how I can get rid of static," and focus only on how to satisfy the compiler, rather than on learning a) when it's appropriate to make something static or not from a design perspective, and b) what the implications of that decision are, for both static and non.
    I have just a wee bit of a prejudice against the "what do I type to make the error messages go away" approach. :-)That sounds good to me. We're currently trying to fix an issue caused by the fact that one class has most of its variables as static, when they should really be instance variables. There should only be one active instance of this class at a time, but the values of the static variables stick around when you call "new ThisClass()". So, old data interferes with new data, and various errors happen. The class has many static methods to access the static variables, but it should have been more of a Singleton--an actual object with non-static variables. The active instance of the Singleton would need to be replaced at logout/login (as opposed to shutdown completely and restart the JVM), but then at least when the new instance were created, then all of the variables would be initialized to empty--the old instance would disappear. The solution at the moment (solution by others--I don't agree) is to clear each static Vector and then set the reference to null (setting to null would be enough to drop the old data, but certain people don't get that...). This is fragile because many variables were missed in this "cleanup" process, and it will be easy to forget to "cleanup" new variables in the future. This class has been misdesigned for years (much longer than I've been here). The calls to static methods permeate the application, so it isn't easy to fix it quickly. There are several of these misdesigned classes in our application--a mix of static and non-static, when nothing or almost nothing should be static.

  • SSO for SAP and Non-SAP applications without Enterprise Portal

    Dear all,
    Is it possible to implement SSO for both SAP and non-SAP applications without involvement of EP at all?
    I have gone through this link.
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/e5/4344b6d24a05408ca4faa94554e851/frameset.htm</a>
    But I still i am not able to get the precise answer on how to enable SSO for both  SAP and non-SAP applications without EP.
    We have decided not to implement EP in first phase of SAP implementation. But we need to enable SSO for other SAP and Non-SAP applications.
    A detailed description on how to deal this kind of scenarios will be helpful.
    Thanks.

    A client of our's uses <b>SAP Enterprise Portal</b>, and is using the SAP SSO, which is implemented with tickets, and requires the use of SAPSECULIB.  My company provides an application for this client, and our application in hosted in our data center for the client, as a Software as a Service application, obviously across the internet.  Our client, which owns a SAP license, has asked that we support the SAP SSO as a non-SAP SSO application.  The client user's SSO ticket will be created from SAP EP, and then passed across the internet to our application, and we are to use that SSO ticket as an authentication ticket to our application.  I beleive I know how to do this work technically, having reviewed the SAP document named: "Dynamic Library for Verifying SSO Tickets in Third-Party Software"   Specification   Version 2.00  December 2005.
    My question is, does my company have the right to use the SAPSECULIB?  Where is the official download and <b>license</b> download, that indicates we can download this library, and use it to support a SAP customer?  We do not own a SAP license.  Thank you for your help.  I have searched many places in SAP support.<b></b>

  • Invoice Posting using INVOIC02 Idoc for PO and Non-Po based invoices

    Hi All,
      We have a problem regarding posting Invoices using Idocs.
    We have po and non-po invoices coming frm thirdparty in the form of idoc files.
    We need a clarification whether Invoic02 idoc can handle both Po and Non Po Based invoices or threre are seperate idoc types or message types for Po and Non Po Invoices.
    Could any one give some inputs on Partner Profiles also for this senario.
    Please kindly reply as early as possible.
    Regards
    Anil Kumar K

    Hi
      I Got your name from this site.I would be very thankful if you can help me here.I am designing a EDI based invoice LIV.Is it possible to post some charges which are without PO reference but are coming in Vendor Invoices.Is it possible to post these kind of charges with EDI message INOIC01 or we have to post through FI posting.If possible through EDI in which segment of IDOC we will enter these charges with amt.Also is it possible to post credit memo also with EDI
    Thanks
    Sanjeev

Maybe you are looking for

  • Powermac 8600/300 TV as monitor

    I connected my PowerMac 8600/300 to my TV so the TV can be used as a monitor thru the AV ports but it looks horrible. You can barly see the icons and stuff. Its running OS 9.2.2. Thanks

  • My iPhone's bluetooth is not able to detect another iPhone iOS 7.0.6. (latest)

    my iPhone's bluetooth is not able to detect another iPhone iOS 7.0.6. (latest)

  • JMXConnectorServer.start() causes java.rmi.AccessException

    Hi all, I've already posted this message to the tomcat mailing list as well as to the jmx forum, but without any result. I've a web service running inside tomcat which creates the jmx stuff needed to manage resources: LocateRegistry.createRegistry(po

  • Flash to HTML 5

    I have designed a interactive demo in flash cs4 and now I want to convert this is HTML5... I tried using Wallaby tool for this but it is giving file version error and also not sure if it can convert the complete demo in html5. Any ideas and suggestio

  • Unable to use runtime prompts

    Hi All, I have created two runtime prompts for a Business Rule which copies data from one version to another. I want to set the source and destination dimension members at run-time (using Smartview). However I am getting an error when I try to add it