Issue with set and get paramter
Hi all,
i am using set parameter id in a module pool program and get parameter id in the FM .
say iam passing a value ABC.
IN BETWEEN USING THE FM IF I OPEN SE38 THEN I SEE THE VALUE ABC IN THE PROGRAM NAME.
is there any thing that i need to do after using it in FM like clear memory etc.
Thanks
Hi ,
i need to do this after the get parameter right.
if iam right.
say i am passing the value from module pool now i.e set parameter (value = abc)
and using the fm later say tommorow in which i have get parameter
and i have the statment
clear: v_value.
SET PARAMETER ID 'AAA' FIELD v_value.
or
SET PARAMETER ID 'AAA' FIELD space.
so in the mean time between today and tommorrow if use se38 then i see abc in se38 right
let me know if iam right and is there a way to avoid this
thanks
Similar Messages
-
Abstract class with set and get methods
hi
how to write set and get methods(plain methods) in an abstartc class
ex: setUsername(String)
String getUsername()
and one class is extending this abstract class and same methods existing in that sub class also..... how to write......plz provide some ideas
am new to programming....
asap
thnx in advanceyes... as i told u.... i am new to coding......
and my problem is ..... i have 2 classes one is abstract class without abstract methods.. and another class is extending abstract class.....
in abstract class i have 2 methods...one is setusername(string) and getusername() ..... how to write these two methods.... in abstract class i have private variables username...... when user logins ..... i need to catch the user name and i need to validate with my oracle database and i need to identify the role of that user and based on role of that user i need to direct him to appropriate jsp page.......
for that now i am writing business process classes..... the above mentioned two classes are from business process.....
could u help me now
thnx in advance -
Memory Problem with SEt and GET parameter
hi,
I m doing exits. I have one exit for importing and another one for changing parameter.
SET PARAMETER exit code is ....
*data:v_nba like eban-bsart,
v_nbc like eban-bsart,
v_nbo like eban-bsart.
v_nbc = 'CAPX'.
v_nbo = 'OPEX'.
v_nba = 'OVH'.
if im_data_new-werks is initial.
if im_data_new-knttp is initial.
if im_data_new-bsart = 'NBC' or im_data_new-bsart = 'SERC' or im_data_new-bsart = 'SERI'
or im_data_new-bsart = 'SER' or im_data_new-bsart = 'SERM' or im_data_new-bsart = 'NBI'.
set parameter id 'ZC1' field v_nbc.
elseif im_data_new-bsart = 'NBO' or im_data_new-bsart = 'NBM' or im_data_new-bsart = 'SERO'.
set parameter id 'ZC2' field v_nbo.
elseif im_data_new-bsart = 'NBA' or im_data_new-bsart = 'SERA'.
set parameter id 'ZC3' field v_nba.
endif.
endif.
endif. *
and GET PARAMETER CODE IS....
get parameter id 'ZC1' field c_fmderive-fund.
get parameter id 'ZC2' field c_fmderive-fund.
get parameter id 'ZC3' field c_fmderive-fund.
FREE MEMORY ID 'ZC1'.
FREE MEMORY ID 'ZC2'.
FREE MEMORY ID 'ZC3'.
In this code i m facing memory problem.
It is not refreshing the memory every time.
So plz give me proper solution.
Its urgent.
Thanks
RanveerHi,
I suppose you are trying to store some particular value in memory in one program and then retieve it in another.
If so try using EXPORT data TO MEMORY ID 'ZC1'. and IMPORT data FROM MEMORY ID 'ZC1'.
To use SET PARAMETER/GET PARAMETER the specified parameter name should be in table TPARA. Which I don't think is there in your case.
Sample Code :
Data declarations for the function codes to be transferred
DATA : v_first TYPE syucomm,
v_second TYPE syucomm.
CONSTANTS : c_memid TYPE char10 VALUE 'ZCCBPR1'.
Move the function codes to the program varaibles
v_first = gv_bdt_fcode.
v_second = sy-ucomm.
Export the function codes to Memory ID
EXPORT v_first
v_second TO MEMORY ID c_memid. "ZCCBPR1 --- Here you are sending the values to memory
Then retrieve it.
Retrieve the function codes from the Memory ID
IMPORT v_first TO v_fcode_1
v_second TO v_fcode_2
FROM MEMORY ID c_memid. "ZCCBPR1
FREE MEMORY ID c_memid. "ZCCBPR1
After reading the values from memory ID free them your problem should be solved.
Thanks
Barada
Edited by: Baradakanta Swain on May 27, 2008 10:20 AM -
Issue with setting ratings and labels
Greetings all. I am having an issue with setting ratings AND labels on image files at the same time. If the script sets the label first then the rating, the label doesn't show in Bridge. If the script sets the rating first then the label, the rating doesn't show in Bridge.
Is there a workaround for this? Here is my script function for doing this. file=filename minus extension. Rating is a number for the desired rating. lab is a number for the level of Label I wish to set. Everything works great except that I can't set both Rating and Label with the script as shown. In this instance, only the Ratings will show up in Bridge after running the script. If I move the x.label=Label line under the x.rating=Rating line, then the ratings only show for those images with no label (lab=0). Any image that gets a label receives no rating.
If you're going to test this, you may want to comment out the Collections part. That's the part within the "switch(Number(Rating))" block.
function setRating(file,Rating,lab) {
try{
cr=File(file+"CR2");
psd=File(file+"psd");
jpg=File(file+"jpg");
tif=File(file+"tif");
switch(lab) {
case 0: Label = ""; break;
case 1: Label = "Select"; break;
case 2: Label = "Second"; break;
case 3: Label = "Approved"; break;
if (cr.created) {
var c=new Thumbnail(cr);
c.label=Label;
c.rating=Rating;
if (psd.created) {
p=new Thumbnail(psd);
p.label=Label;
p.rating=Rating;
if (jpg.created) {
var j=new Thumbnail(jpg);
j.label=Label;
j.rating=Rating;
Rating=0;
else addFile=psd;
else addFile=cr;
switch(Number(Rating)){
case 0 : break; /* No Rating */
case 1 : if(!app.isCollectionMember(OneStar,new Thumbnail(addFile))) app.addCollectionMember(OneStar,new Thumbnail(addFile)); break;
case 2 : if(!app.isCollectionMember(TwoStars,new Thumbnail(addFile))) app.addCollectionMember(TwoStars,new Thumbnail(addFile)); break;
case 3 : if(!app.isCollectionMember(ThreeStars,new Thumbnail(addFile))) app.addCollectionMember(ThreeStars,new Thumbnail(addFile)); break;
case 4 : if(!app.isCollectionMember(FourStars,new Thumbnail(addFile))) app.addCollectionMember(FourStars,new Thumbnail(addFile)); break;
case 5 : if(!app.isCollectionMember(FiveStars,new Thumbnail(addFile))) app.addCollectionMember(FiveStars,new Thumbnail(addFile)); break;
default : break;
}catch(e){
alert(e);
return -1;Afew errors to start with, you were not creating a proper file as there wasn't a fullstop in the filename.
If a CR2 file didn't exist no other file was looked for, you were using "created" and should have been "exists"
This now labels and rates....
setRating("/C/Test Area/NEF/z",2,1);
function setRating(file,Rating,lab) {
try{
cr=File(file+".CR2");
psd=File(file+".psd");
jpg=File(file+".jpg");
tif=File(file+".tif");
switch(Number(lab)) {
case 0: Label = ""; break;
case 1: Label = "Select"; break;
case 2: Label = "Second"; break;
case 3: Label = "Approved"; break;
if (cr.exists) {
var c=new Thumbnail(cr);
c.label=Label;
c.rating=Rating;
if (psd.exists) {
p=new Thumbnail(psd);
p.label=Label;
p.rating=Rating;
if (jpg.exists) {
var j=new Thumbnail(jpg);
j.label=Label;
j.rating=Rating;
Rating=0;
switch(Number(Rating)){
case 0 : break;
case 1 : if(!app.isCollectionMember(OneStar,new Thumbnail(addFile))) app.addCollectionMember(OneStar,new Thumbnail(addFile)); break;
case 2 : if(!app.isCollectionMember(TwoStars,new Thumbnail(addFile))) app.addCollectionMember(TwoStars,new Thumbnail(addFile)); break;
case 3 : if(!app.isCollectionMember(ThreeStars,new Thumbnail(addFile))) app.addCollectionMember(ThreeStars,new Thumbnail(addFile)); break;
case 4 : if(!app.isCollectionMember(FourStars,new Thumbnail(addFile))) app.addCollectionMember(FourStars,new Thumbnail(addFile)); break;
case 5 : if(!app.isCollectionMember(FiveStars,new Thumbnail(addFile))) app.addCollectionMember(FiveStars,new Thumbnail(addFile)); break;
default : break;
}catch(e){
alert(e);
return -1; -
Set and get values with vector
I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
ex:
my class:
sql = "Select ...";
Vector fName = new Vector();
rs = sqlStatement.executeQuery(sql);
if (rs != null) {
while (rs.next()) {
fName.add(rs.getString("fName") + "");
rs.close();
setFName(fName);
how would I set up the set and get methods???
thanksI am unsure of what you are asking:
A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
If you are asking how to access the elements of the Vector you use an Enumeration:
for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
s = (java.lang.String) e.nextElement();
vl.add(s.substring(0, 12));
If you are asking something else: please elaborate what you want--my brain may not be very functional this morning. -
I'm having a lot of issues with firefox and cannot figure out how to get help. It began when I updated to 13. I get all kinds of ad popups, I cannot play one game on FaceBook called Farm Town at all, and I keep getting an AVG popup about cookies that I cannot get rid of. These issues are causing me to use Chrome very often even though I like Fox better. I've searched and searched how to get help and cannot find anything. How does one get personal technical help?? These issues do not happen in Chrome at all. Thanks.
Do a malware check with some malware scanning programs on the Windows computer.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
*http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
*http://www.superantispyware.com/ - SuperAntispyware
*http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
*http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
*http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
You can also do a check for a rootkit infection with TDSSKiller.
*http://support.kaspersky.com/viruses/solutions?qid=208280684
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
Having mail 4.5 issues- open mail and get a new features message that says in order to use the new features, I must import existing messages into the new version first in order to use mail 4.5. Just recently put in MAC OSX 10.6.7. Once it imports I am to click done to start using mail, but end up with the rainbow wheel of death and it also says you cannot use mail until the import is finished? Now What?
Is Mail still "spinning"? If it's been doing that for a while, I'd kill it, using either Activity Monitor or the OS X application picker. Then relaunch Mail and see what happens.
Two "by the ways":
1) Your system details mention an PPC iMac. Since a non-Intel Mac can't run OS X 10.6, you seem to have another Mac. You might want to consider updating your system details.
2) You seem to have been misled by the poor labeling of the message composition fields on this forum into trying to enter your entire post into the "subject" field. In the future, just enter a summary of your post there and the main text into the field below it. -
Is there a compatability issue with Firefox and Andriod operating system 2.2.3? I can't get Firefox to work. I have tried uninstalling it and it won't download. in English
Hi Drbobdog, there shouldn't be a compatibility with Android OS 2.2.3. There may be a compatability with the device itself.
Here are the system requirements:
https://wiki.mozilla.org/Mobile/Platforms/Android#System_Requirements
(also seen here as well : http://www.mozilla.org/en-US/mobile/platforms/ )
I hope this helps. -
ADF Faces - issue with Portal and af table
I wonder if anybody could help me with a problem we are experiencing with running our ADF Faces app inside a portal (NOT Oracle Portal). We are using the af table tag with the rows attribute set as follows:
<af:table emptyText="No items found"
rows="10" banding="row"
bandingInterval="1"
binding="#{backing_ModuleSearchReg.table1}"
id="table1"
var="row">
What this does is if we have more than 10 rows to display it will display
a table header that has a label 'Previous 1-10 of nnn' Next 10. However, when you click on 'Next 10' it produces a Javascript error.
When we run the app outside of the portal we do not get this problem.
I believe this is related to known issues with JSF and Javascript inside a 'framed' web page. But if anybody help me with this or point me to a resource that can help it would be very much appreciated.
Many Thanks in advance.
ChrisHi,
I remember a similar issue with inner frames that should be fixed in JDeveloper 10.1.3.3. The problem was that the ADF Faces JavaScript did not get the correct document root.
Frank -
An issue with authentication and authorization on ISE 1.2
Hi, I'm new to ISE.
I have an issue with authentication and authorization.
I have ISE 1.2 plus patch 6 installed on VMware.
I have built-in Windows XP supplicant and 2960 cisco switch with IOS c2960-lanbasek9-mz.150-2.SE5.bin
On supplicant I use EAP(PEAP) with EAP-MSCHAP v2.
I created authentication and authorization rules with Active Directory as External Identity Source. Also I applied authorization profile with DACL.I login on Windows XP machine under different Active Directory accounts. Everything works fine (authentication, authorization ), but only for several hours. After several hours passed , authentication and authorization stop working . I can see that ISE trying authenticate and authorize users, but ISE always use only one account for authentication and authorization . Even if I login under different accounts ISE continue to use only one last account.
I traied to reboot switch and PC,but it didn’t help. Only rebooting of ISE helps. After ISE rebooting, authentication and authorization start to work properly for several hours.
I don’t understand is it a glitch or I misconfigured ISE or switch, supplicant?
What should I do to resolve this issue?
Switch configuration:
testISE#sh runn
Building configuration...
Current configuration : 7103 bytes
! Last configuration change at 12:20:15Tue Apr 15 2014
! NVRAM config last updated at 10:35:02 Tue Apr 15 2014
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname testISE
boot-start-marker
boot-end-marker
no logging console
logging monitor informational
enable secret 5 ************
enable password ********
username radius-test password 0 ********
username admin privilege 15 secret 5 ******************
aaa new-model
aaa authentication dot1x default group radius
aaa authorization network default group radius
aaa authorization auth-proxy default group radius
aaa accounting update periodic 5
aaa accounting dot1x default start-stop group radius
aaa server radius dynamic-author
client 172.16.0.90 server-key ********
aaa session-id common
clock timezone 4 0
system mtu routing 1500
authentication mac-move permit
ip dhcp snooping vlan 1,22
ip dhcp snooping
ip domain-name elauloks
ip device tracking probe use-svi
ip device tracking
epm logging
crypto pki trustpoint TP-self-signed-1888913408
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1888913408
revocation-check none
rsakeypair TP-self-signed-1888913408
crypto pki certificate chain TP-self-signed-1888913408
dot1x system-auth-control
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
ip ssh version 2
interface FastEthernet0/5
switchport mode access
ip access-group ACL-ALLOW in
authentication event fail action next-method
authentication event server dead action reinitialize vlan 1
authentication event server alive action reinitialize
authentication host-mode multi-auth
authentication open
authentication order dot1x mab
authentication priority dot1x mab
authentication port-control auto
authentication periodic
authentication timer reauthenticate server
authentication violation restrict
mab
dot1x pae authenticator
dot1x timeout tx-period 10
spanning-tree portfast
interface FastEthernet0/6
switchport mode access
ip access-group ACL-ALLOW in
authentication event fail action next-method
authentication event server dead action reinitialize vlan 1
authentication event server alive action reinitialize
authentication order dot1x mab
authentication priority dot1x mab
authentication port-control auto
authentication periodic
authentication timer reauthenticate server
authentication violation restrict
mab
dot1x pae authenticator
dot1x timeout tx-period 10
spanning-tree portfast
interface FastEthernet0/7
interface Vlan1
ip address 172.16.0.204 255.255.240.0
no ip route-cache
ip default-gateway 172.16.0.1
ip http server
ip http secure-server
ip access-list extended ACL-ALLOW
deny icmp any host 172.16.0.1
permit ip any any
ip radius source-interface Vlan1
logging origin-id ip
logging source-interface Vlan1
logging host 172.16.0.90 transport udp port 20514
snmp-server community public RO
snmp-server community ciscoro RO
snmp-server trap-source Vlan1
snmp-server source-interface informs Vlan1
snmp-server enable traps snmp linkdown linkup
snmp-server enable traps mac-notification change move
snmp-server host 172.16.0.90 ciscoro
radius-server attribute 6 on-for-login-auth
radius-server attribute 6 support-multiple
radius-server attribute 8 include-in-access-req
radius-server attribute 25 access-request include
radius-server dead-criteria time 5 tries 3
radius-server vsa send accounting
radius-server vsa send authentication
radius server ISE-Alex
address ipv4 172.16.0.90 auth-port 1812 acct-port 1813
automate-tester username radius-test idle-time 15
key ******
ntp server 172.16.0.1
ntp server 172.16.0.5
endYes. Tried that (several times) didn't work. 5 people in my office, all with vers. 6.0.1 couldn't access their gmail accounts. Kept getting error message that username and password invalid. Finally solved the issue by using Microsoft Exchange and "m.google.com" as server and domain and that the trick. Think there is an issue with imap.gmail.com and IOS 6.0.1. I'm sure the 5 of us suddently experiencing this issue aren't the only ones. Apple will figure it out. Thanks.
-
Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden. I need help??
To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
Jon-W
I work on behalf of HP
Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
Click the KUDOS STAR on the left to say “Thanks” for helping! -
Issue with Setting Application Item
Hi All,
I have an issue with setting the value of application item G_USER_ID as part of the login process.
I use customized authentication for login. I have created an application item G_USER_ID, and in my CUSTOM_AUTH procedure, I am setting its value as APEX_UTIL.SET_SESSION_STATE('G_USER_ID', l_user_id);
For some reason, the value is not set to G_USER_ID the first time I login. When I log out and login again without closing the browser, the value is set. Note that I even tested with a static value instead of l_user_id like APEX_UTIL.SET_SESSION_STATE('G_USER_ID', '5555555'); but still fails to set during the first login.
I hope someone can guide me as to what I am doing wrong here.
Thanks!
JMcGWhat does this do?
:SVR_FLAG := NVL(l_mult_svr,'N');
Scott -
A little background, before I get into my iWeb issue.....
Years ago I tried iPhoto, but I didn't like how it duplicated all my photo files and I wasn't very fond of the file structure it created. Years later (last month) I got Aperture. Aperture (still has a long way to go) also duplicates all your files and places them in their own file structure. If I can get along with Aperture (and if it will get along with my other programs), I won't mind putting all my files into the file structure it creates. But for now, I still have my original files in the original file structure I have had for many years as a back up.
On to my issue with iWeb and Aperture....
To add photos to iWeb, you can either go into the iWeb media center or you can drag and drop photos from other locations.
1st: iWeb media center
To get my photos into the media center, I would have to load them into iPhoto (iP 6 does allow you to keep your original file structure, but it still creates .jpg files, which fills up your hard-drive. More duplicates I don't need or want). So that is out for me. iP6 will let you view and use your Raw files.
Another way is to drag and drop your file structure directly into the media center window. I don't think this duplicates any files (at least I haven't been able to find any), but it takes an awfully long time to thumbnail all your photos (several hours and still waiting for 22K + files). Also, it won't show any Raw files. Again, out for me.
Aperture won't let you drag and drop its library into the media center at all. So if I was to move all my files into the Aperture Library, I wouldn't be able to access them for iWeb at all.....Out for me.
2nd: Drag and Drop
I was able to drag and drop Raw files directly into iWeb from C1 Pro, Adobe Bridge and Adobe Lightroom.
As I said before, I am trying to move over to Aperture. However, Aperture won't let me drag and drop photos. What is the deal here??? These are both Apple programs and they won't play nice with each other. Very annoying.
Anyway, I put a link below to my iWeb test webpage I made. All the photos were Raw files that I did a drag and drop from C1 Pro, Adobe Bridge and Lightroom. There were no problems with the publishing.
http://web.mac.com/phil_navarro/iWeb/Site%202/Drag%20and%20Drop%20test.html
So, does anyone know if they can get photos from Aperture to work?? Thanks for any responses.
Phil
G5 Desktop Mac OS X (10.4.4)Jedi,
Perhaps you are right.
I am not a web developer and I will never be. I don't feel like spending countless hours learning how to use Dreamweaver or some other Pro web app. iWeb looked like a way to start making websites of my photos for my friends and family (much easier and better than Home Page on .Mac). All I was asking was for a way to drag and drop my photos (especially Raw files) with Aperture. Which I can do with Lightroom, Adobe Bridge and C1 Pro, and without using iPhoto.
I am not a Pro photographer either, but I purchased Aperture based on what was advertised on the Apple website. From that ad, Aperture fit my photo needs almost to a tee. I am looking to adjust Raw files, Crop, Archive and keep my use of Hard Disk space down to a minimum. I can use Photoshop for the other 5% of things I do. However, Aperture has some issues (if you own it, then you already know. If you don't, you can read the Aperture Forum) This is one of the reasons I never went to iPhoto for archiving. I didn't like the way it duplicated all my files, taking up more disk space and its file structure. So even though Aperture won't play nice with other programs, I was surprised that it wouldn't play nice with any Apple programs.
After reading your post and based on what you are saying, everyone either needs to have/learn/use Pro apps only or have/learn/use iApps only. Don't Cross the Streams!!
I guess that means Apple will need to fix DVD Studio Pro. It uses photos that are in your iPhoto library and music from iTunes (iApps in a Pro app??....for shame...."it was never intended"). Also, DVD SP won't read the Aperture library. Does that mean there are 3 platforms? Pro, iApp and Mediocre??
Now I have 2 questions:
1. Can someone please tell me which apps are Pro and iApp, or if there is Mediocre? I don't want to mix them up and "Cross the Streams".
2. Again....is there anyway to use Aperture with iWeb?
TIA,
Narvon -
Uk date format issue with ASP and Access Database
I have an Asp form which updates records in an Access
database. Problem is
that the date format in the database record is dd/mm/yyyy
(UK), when
the record is displayed on the form it is mm/dd/yyyy(US)
which after I
update the record in the database the date has changed to the
new format.
I have tried everything I can to change the format but to no
avail...anyone any ideas how I can resolve this issue?
Thanks
Stevestevo.s wrote:
> Hi
>
> I have tried changing the format on the date field on
the server behaviours
> panelto ddmmyyy. Also have tried to set the form field
format to ddmmyy. I have
> also tried to use a function I got from a posting
somehwere on the net to no
> avail. <%function ddmmyyyy(varDate)
> ddmmyyyy = Day(DateValue(varDate)) & "/" &
Month(DateValue(varDate))
> & "/" & Year(DateValue(varDate))
> end function
>
> I believe that this is a recognised issue with
Dreamweaver and Access but
> can't seem to grasp the work around! Problem being I am
teaching myself through
> books and internet articles and can be weeks at a time
without being able to
> look at the issue..each time I come back to it it is
like starting all over
> again! I was hoping that somewhere out there there is a
simple solution the
> issue perhaps a date picker with the built in
functionality to address the
> issue...I am keen to understand how to deal with the
issue rather than just
> change my database date field to fudge the problem as I
am in the UK and when I
> eventually start to use the application I would like
there to be some
> consistency with dates and that users are familiar with
the format.
>
> Any help gratefully received!
Its not Dreamweaver, or Access, its your servers locale, its
set to US
format, not the UK.
On your page at the top use:
<% Session.LCID = 2057 %>
This will force the page into using UK formatted dates. Use
it on any
page that needs to format the page correctly.
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
SwapImage with Set cookie - Get Cookie , Optimizing for internet explorer ?
Hello
I have a soon- to -be -published website. The homepage, index has quite a lot of session - cookies on it, which are connected to swapimage behaviour. They work fine in firefox, opera, Safari and chrome, but in Internet explorer the swapping of the images takes a looooooot of time.....
Also, when I reload the page, some of the cookies are not retrieved, which only happens in Internet Explorer.
This is the inline javascript for the page:
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
</script>
<script type="text/javascript">
if (Get_Cookie('plug')) { document.getElementById('Image41').src="images/PluginsN_95.png" ; }
if (Get_Cookie('homebutton')) { document.getElementById('homebutton2').src="images/HomeButton_03.png" ; }
if (Get_Cookie('search')) { document.getElementById('searchBox2').src="images/searchbox2_18.png" ; }
if (Get_Cookie('tooling')) { document.getElementById('toolingMain2').src="images/ToolingButtonMainN_05.png" ; }
if (Get_Cookie('homeF')) { document.getElementById('homeF2').src="images/homeFilled_06.png" ; }
if (Get_Cookie('flashButton')) { document.getElementById('flashButtonTWO2').src="images/flashMenuNew_12.png" ; }
if (Get_Cookie('Disclaimer')) { document.getElementById('Disclaimer2').src="images/Disclaimer_46.png" ; }
if (Get_Cookie('About')) { document.getElementById('About2').src="images/aboutSmall_87.png" ; }
if (Get_Cookie('litter')) { document.getElementById('Litterature2').src="images/LitteratureN_99.png" ; }
if (Get_Cookie('sky')) { document.getElementById('Skyscrapers2').src="images/Buildings_73.png" ; }
if (Get_Cookie('arti')) { document.getElementById('Artificial2').src="images/Artificial_32.png" ; }
if (Get_Cookie('intro')) { document.getElementById('IntroButton2').src="images/IntroMainN_15.png" ; }
if (Get_Cookie('vector')) { document.getElementById('GVectors2').src="images/GVectorsN_21.png" ; }
if (Get_Cookie('lsys')) { document.getElementById('LSystems2').src="images/LSystems_03.png" ; }
if (Get_Cookie('recurse')) { document.getElementById('Recursivity2').src="images/RecursivityN_30.png" ; }
if (Get_Cookie('anim')) { document.getElementById('AnimGrowth2').src="images/AnimGrowthN_32.png" ; }
if (Get_Cookie('generate')) { document.getElementById('Genr').src="images/Genr8N_34.png" ; }
if (Get_Cookie('algo')) { document.getElementById('Algorithms2').src="images/AlgsN_43.png" ; }
if (Get_Cookie('map')) { document.getElementById('MappingGrammars2').src="images/MapGrammars_21_20.png" ; }
if (Get_Cookie('blog')) { document.getElementById('blogMain2').src="images/bloggingButtonN_07_07.png" ; }
if (Get_Cookie('frac')) { document.getElementById('Fractals2').src="images/fractalMain_20.png" ; }
if (Get_Cookie('maya')) { document.getElementById('MayaApi2').src="images/MayaApiN_54.png" ; }
if (Get_Cookie('link')) { document.getElementById('Links2').src="images/Links_61.png" ; }
if (Get_Cookie('turtle')) { document.getElementById('TurtleG2').src="images/TurtleGN_63.png" ; }
if (Get_Cookie('EmergentDes')) { document.getElementById('EmergentD2').src="images/EmergentN_77.png" ; }
if (Get_Cookie('openSource')) { document.getElementById('shareWare2').src="images/SharewareN_75.png" ; }
if (Get_Cookie('credits')) { document.getElementById('SiteCred2').src="images/SiteCredits_48.png" ; }
if (Get_Cookie('Projecting')) { document.getElementById('Projects2').src="images/ProjectsN_97.png" ; }
if (Get_Cookie('Disclaimed')) { document.getElementById('Disclaimer2').src="images/Disclaimer_46.png" ; }
if (Get_Cookie('Projecting')) { document.getElementById('Projects2').src="images/ProjectsN_97.png" ; }
if (Get_Cookie('designpa')) { document.getElementById('DesignP2').src="images/DesignPN_85.png" ; }
if (Get_Cookie('toolingfilled')) { document.getElementById('toolingfill').src="images/toolingFilled_08.png" ; }
if (Get_Cookie('homeFill')) { document.getElementById('filled').src="images/homeFilled_06.png" ; }
if (Get_Cookie('flashFilled')) { document.getElementById('filledFlash').src="images/flashFilled_12.png" ; }
if (Get_Cookie('blogFill')) { document.getElementById('filledBlog').src="images/blogFilled_10.png" ; }
if (Get_Cookie('introFilled')) { document.getElementById('filledIntro').src="images/introFilled_20.png" ; }
if (Get_Cookie('vectorFill')) { document.getElementById('filledVectors').src="images/vectorsFilled_21.png" ; }
if (Get_Cookie('lsysFill')) { document.getElementById('filledLsystems').src="images/lsystemsFilled_23.png" ; }
if (Get_Cookie('recurFill')) { document.getElementById('filledRecur').src="images/recursivityFilled_28.png" ; }
if (Get_Cookie('animFill')) { document.getElementById('filledAnim').src="images/animgrowthFilled_30.png" ; }
if (Get_Cookie('genr8Fill')) { document.getElementById('filledGenr8').src="images/genr8Filled_32.png" ; }
if (Get_Cookie('linksFill')) { document.getElementById('filledLinks').src="images/linksFilled_51.png" ; }
if (Get_Cookie('algoFill')) { document.getElementById('filledAlgo').src="images/algFilled_41.png" ; }
if (Get_Cookie('artiFill')) { document.getElementById('filledArtificial').src="images/googleSearch_43.png" ; }
if (Get_Cookie('mayaFill')) { document.getElementById('filledMaya').src="images/resize_48.png" ; }
if (Get_Cookie('fractalFill')) { document.getElementById('filledFractals').src="images/fractalsFilled_46.png" ; }
if (Get_Cookie('turtleFill')) { document.getElementById('filledTurtle').src="images/turtleFilled_53.png" ; }
if (Get_Cookie('alifeFill')) { document.getElementById('filledAlife').src="images/alifeFilled_55.png" ; }
if (Get_Cookie('pluginsFill')) { document.getElementById('filledPlugins').src="images/pluginsFilled_81.png" ; }
if (Get_Cookie('extraFill')) { document.getElementById('filledExtra').src="images/extraFilled_81.png" ; }
if (Get_Cookie('designpFill')) { document.getElementById('filledDesignp').src="images/designpFilled_71.png" ; }
if (Get_Cookie('disclaimerFill')) { document.getElementById('filledDisclaimer').src="images/disclaimerFilled_73.png" ; }
if (Get_Cookie('litteratureFill')) { document.getElementById('filledLitterature').src="images/litteratureFilled_85.png" ; }
if (Get_Cookie('projectsFill')) { document.getElementById('filledProjects').src="images/projectsFilled_83.png" ; }
if (Get_Cookie('emergentFill')) { document.getElementById('filledEmergent').src="images/emergentFilled_64.png" ; }
if (Get_Cookie('emergentFill')) { document.getElementById('filledFooter').src="images/footerFilled_87.png" ; }
if (Get_Cookie('headerFill')) { document.getElementById('filledHeader').src="images/headerFilled_06.png" ; }
if (Get_Cookie('VectorFillExtra')) { document.getElementById('filledVectorT').src="images/vectorFilled2_21.png" ; }
</script>
As you can see there are a lot of function calls with getElementById, and I'm thinking there has to be a more efficient way of doing this....... I am using an external cookieScript for setting and getting the cookies, but the swapImage is standard Dreamweaver.
I would be very happy if anybody could help me with this.. I know it is probably easy when you know how, but I don't, unfortunately :-(
eivindtHi JMH_NG,
Thanks for the post and I hope your well today. I noticed you've not received any support so far.
It is possible in LabVIEW to access the ActiveX event callbacks
for the WebBrowser object. The "ActiveX Event Callback for IE.vi" is a
good example found in the Example Finder that demonstrates this
capability. The ability to poll whether the download is complete will
be completely dependent on the DWebBrowserEvents that the WebBrowser supports. FileDownload will notify when a download file download begins. From Microsoft's MSDN page,
"When the WebBrowser control is about to begin a download operation, it
fires the DWebBrowserEvents2:: DownloadBegin event." A DownloadComplete
event is also fired when the download operation finishes. From the
information I've found, it sounds like these events (and
ProgressChange) are only for page downloads and not for file downloads,
but they are your best bet. I would suggest inquiring on the MSDN Forum for more information on these events.
I hope this helps,
Kind Regards,
James.
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help!
Maybe you are looking for
-
I have recently purchased an Acer Aspire Switch 11 which has flash memory card (in addition to the internal flash) but a 500 gb HDD which at this moment just occupys space and adds weight. How do I "really" use this drive? Can I point Office 365 to
-
Templates in DW CS5.5 and editable regions
I have a template page that has an editable region defined as follows: <div class="sidebar1"> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a><
-
I'm storing imovie events in external hard drive. When attempting to "export a project using Quicktime", a message comes up saying it can't find my imovie event. Can't figure out how to tell it where the events are stored. It doesn't ask or have a po
-
My wife has an iPhone with an Apple address and password. I now have an iPad and am unable to obtain an Apple ID. I have tried using her's and am unable to create a Free Apple ID as our email address (Apple ID) is being used by her. Any thoughts
-
Javadoc code generation?
I have a javadoc which I wish to translate into code stubs. For example, if I have some javadoc like: "private void func(E p1, E p2) Does Stuff Parameters: p1 - blah... p2 - blah..." it will generate some code like: * Does Stuff * @param p1 - blah...