GET - Changing image based on a parameter passed onto url - html

I recently saw a website that changed a div's background image based on a parameter passed onto a url.
Something that goes like this: http://website.com/image.jpg?p=100
Basically when value of p is from 0 to 100 it shows an image and another one when it exceeds 100. Was wondering how was this achieved. Was there conditional statements involved? Thank you!

Yes, it probably includes a conditional statement. They retrieve the value of the parameter, compare it with a limit value and decide what image should be displayed.
Nothing magical
But, as Vasan says, without more information about the technologies they used, we can't say more.

Related

this formula uses scope which is not presently supported for evaluation - is this relate to my O365 license type?

I want to group my Gallery then I follow training on Youtube, here was my formula :: GroupBy(MCUT,"Machine_Eng","GBY") then i move to item on Gallery and put formula on Title.Text = ThisItem.GBY then I found this messgae
"this formula uses scope which is not presently supported for evaluation" and also have small X in red circle.
Here is my screen ---
Here are my question
is this about limitation for my O365 license?
how to check my license type?
thank you in advance for all helps ^__^
This error is shown only in the "watch expression", meaning that it won't be able to show you its value under the formula bar. That is because in a gallery there will be many rows, and the value of 'ThisItem' will vary among each row and thus the editor can't know which value to choose. This is true regardless of which license you have.
The error that you have is something different. If you hover the mouse on the term 'GBY' over the squiggly red line, you will see more information about the error. Based on the image, it looks like you are trying to use this expression in a label - and since GBY is a table (the group of MCUT rows that have a common 'Machine_Eng' value), this cannot be used in a label.
I had the same issue and it turns out that the column I was using allowed multiple entries. When I changed the column, it worked perfectly.

Changing how font looks in Microsoft Report Builder

Is there a way to be able to change how the font looks in the expression depending on the data output and on which row? As you can see below, I change the font to be red depending on the outcome. But i would also like to be able to manipulate each row.
I thought i could add more into the expression to manipulate whatever the output is, but I got an error when doing that.
Can anyone help with this?
In the first 3 expressions you have
Fields!Score_Interpretation.Value
in the last three
Fields!Score_Interpretation_.Value
just remove the extra _ as the error says, this field does not exist.

Oracle Developer report, change field height

I am using oracle report 6i. I have a problem with the report design. I would like to change one of the field's height to be as high as another field. The second field does have not a fixed height, it depends on the data. So, I found Format Trigger, I have tried to get the height of the other field and set it to be in the current field, but I couldn't. Does anyone know?
I know it is an old question, but nonetheless ...
As far as I can tell, Format Trigger won't do any good here.
I'd go with creating a new frame that would contain both fields (how? Create it in Paper Layout Editor, paint it white (so that you can see what's going on), then move it "Back" until you see both fields appear "on top" of that frame, which means that they are contained in it). Make the frame variable vertically so that it could grow with field_1.
Another option you could try is to anchor field_2 to field_1.

FileMaker 13 GetThumbnail Anomaly?

I have a container field named tempImage, set to have a calculated value of:
GetThumbnail(tempImage; 500; 500)
However, when I drag a larger size image into that field, the image does not get resized.
How can I fix this?
Note: The "Do not replace existing value of field (if any)" checkbox is unchecked. Here is a link to a video showing the anomaly.
I don't have a specific answer, but will offer a method to debug this.
Instead of dropping the image into the container, write a script that is triggered by the OnObjectModify that sets another container field using the GetThumbnail() function.
In so doing, you will be able to run the debugger and see if an error is generated by the script. That will give you more information to post here if you have not solved this already.
Reference information:
http://www.filemaker.com/help/12/fmp/html/func_ref1.31.14.html
Here is a detailed blog post about this function:
http://hbase.net/2013/07/11/resizing-images-in-filemaker-pro-12/`

Reporting Services Chart - X-Axis name problem

I have created a chart using a stored procedure which lists totals by name.
However when I create the chart the names only appear for every second element. I have tested this in a table and I get each name correctly.
My first thoughts were that it was a sizing issue, so I considerably increased the size of my chart, but this doesn't make a difference.
Does anyone know what could be causing the problem?
[URL=http://img11.imageshack.us/i/rschart.jpg/][IMG]http://img11.imageshack.us/img11/7191/rschart.
That "VariableAutoInterval" did not work for me, it showed every alternate other label. However the following worked:
In the Axis Properties -> Interval, type 1 : This will show every label. If you type 2, it will show every alternate label and so on.
http://img223.imageshack.us/img223/3118/capturerk.png
Reference : msdn.microsoft.com/en-us/library/bb934393.aspx
I have found the problem. If you go to the properties of the X-Axis in your chart and go to >Interval > VariableAutoInterval and by default this is set to false. Set this to true and it now works.
However there is a problem with formatting as although the labels appear they are displayed slighter off centre of the actual bar elements... this should easily be fixed though.
Thanks for your help!
[URL=http://img230.imageshack.us/i/rschart2.jpg/][IMG]http://img230.imageshack.us/img230/3958/rsc
Ahh you have run into the notorious RS bug that most everyone doesn't notice. No solution to this, however what you can do to display ALL x axis labels is to shorten the categories (or x-axis values to 3-4 letters a piece and display a key).
What I mean about this is in your SQL table of categories add a field called Acronym or something an for a category such as :
SQL SERVER CATEGORY I
In the acronym field make it
SSCI
And in your report instead of using the category field use a much shorter value (the SSCI value). Now next to your report object just create a matrix / table object that displays categories with their acronyms. You do realize that you can use multiple objects in one report that may point to different data sets.
Doing this will display all the X-Axis values, it is all because of the lengths of the categories...
Seems to be working for me. Can you try to export the report to pdf / excel and check the results. Also I am using RS 2005, are you using 2008?